Skip to content

Commit

Permalink
#1 Update readme
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <georgelemon@protonmail.com>
  • Loading branch information
georgelemon committed Dec 14, 2022
1 parent e5cb2ff commit 5b2d858
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,15 @@ tokens:
Plus > '+'
Minus > '-'
Multi > '*'
Div > '/'
Assign > '='
Comment > '#' .. EOL # anything from `#` to end of line
CommentAlt > "/*" .. "*/" # anything starting with `/*` to `*/`
Var > "var"
Let > "let"
Const > "const"
# single case for multi keywords
BTrue > @["TRUE", "True", "true", "YES", "Yes", "yes", "y"]
BFalse > @["FALSE", "False", "false", "NO", "No", "no", "n"]
Div > '/':
BlockComment ? '*' .. "*/"
InlineComment ? '/' .. EOL
Assign > '='
Var > "var"
Let > "let"
Const > "const"
SetTrue > {"TRUE", "True", "true", "YES", "Yes", "yes", "y"}
SetFalse > {"FALSE", "False", "false", "NO", "No", "no", "n"}
when isMainModule:
var lex = Lexer.init(fileContents = readFile("sample.txt"))
Expand Down

0 comments on commit 5b2d858

Please sign in to comment.