diff options
Diffstat (limited to 'src/interp/lexing.boot')
-rw-r--r-- | src/interp/lexing.boot | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interp/lexing.boot b/src/interp/lexing.boot index 8be1464f..d0f1c065 100644 --- a/src/interp/lexing.boot +++ b/src/interp/lexing.boot @@ -42,6 +42,7 @@ namespace BOOT module lexing where matchString: %String -> %Maybe %Short matchAdvanceString: %String -> %Maybe %Short + matchAdvanceKeyword: %Symbol -> %Thing --% --% Line abstract datatype @@ -402,6 +403,12 @@ matchAdvanceString x == n nil +matchAdvanceKeyword kwd == + matchToken(currentToken(),'KEYWORD,kwd) => + advanceToken() + true + false + --% --% Stack abstract datatype. --% Operational semantics: |