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:

Returns:

    table

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 be true/false
  • numberify Convert input to number via tonumber
  • err Generate a SyntaxError on current line
  • semicolon Generate a SyntaxError for a missing semicolon
generated by LDoc 1.4.6 Last updated 2016-12-23 15:45:05