Module fusion.core.lexer
Lex FusionScript files.
Functions
match (input) | Generate an AST from a file |
Tables
defs |
Functions
- match (input)
-
Generate an AST from a file
Parameters:
- input string
Returns:
Usage:
require("pl.pretty").dump(lexer:match("print('hi');"))
Tables
- defs
-
Fields:
- true
Convert input to
true
boolean - false
Convert input to
false
boolean - bool
Convert input to
defs[input]
- should betrue
/false
- numberify Convert input to number via tonumber
- err Generate a SyntaxError on current line
- semicolon Generate a SyntaxError for a missing semicolon
- true
Convert input to