Testing programs from 'examples/' folder
should be parsed correctly
should print the expected output after execution
Testing Lexer class behaviour
should be able to tokenize a line and count the LP-RP balance
should tokenize from a file
Regex for LP token
should recognize ( as valid a token
should treat { as a synonym for (
should treat [ as a synonym for (
Regex for RP token
should recognize ) as valid a token
should treat } as a synonym for )
should treat ] as a synonym for )
Regex for COMMA token
should recognize , as valid a token
should recognize the : as an alias for ,
Regex for WHITES token
should recognize any quantity of space
should recognize as white even strings with newlines
should recognize as white one-line comments with # or ;
should recognize as white multiline commments with / /
Regex for STRING token
should recognize anything between " " as valid a token
shouldn't recognize strings without " ". Those are words
Regex for WORD token
shouldn't include some special characters on the identifier
should detect [] as a whole WORD, instead of LP, RP
should detect := as a whole WORD; instead of COMMA, WORD
Regex for NUMBER token
should match integers, with and without sign
should match for floats, floating point and exponential notation