1.2.9 Testing

Running minilang with the following arguments should generate the following output:

C:\minilang\x64\Release>minilang --verbose --test-lexer c:\soul-4.0.0\examples\minilang_tests\fibonacci.minilang
testing lexer with file:
> C:/soul-4.0.0/examples/minilang_tests/fibonacci.minilang
INT[int]
ID[fibonacci]
LPAREN[(]
INT[int]
ID[n]
RPAREN[)]
LBRACE[{]
IF[if]
LPAREN[(]
ID[n]
EQ[==]
INTEGER_LITERAL[0]
RPAREN[)]
RETURN[return]
INTEGER_LITERAL[0]
SEMICOLON[;]
IF[if]
LPAREN[(]
ID[n]
EQ[==]
INTEGER_LITERAL[1]
RPAREN[)]
RETURN[return]
INTEGER_LITERAL[1]
SEMICOLON[;]
RETURN[return]
ID[fibonacci]
LPAREN[(]
ID[n]
MINUS[-]
INTEGER_LITERAL[1]
RPAREN[)]
PLUS[+]
ID[fibonacci]
LPAREN[(]
ID[n]
MINUS[-]
INTEGER_LITERAL[2]
RPAREN[)]
SEMICOLON[;]
RBRACE[}]
success