upon running the parser with node parse.js example-assignment.yaklr I get this error
Error: Syntax error at line 1 col 1:
n
^
Unexpected indentifier token: "n". Instead, I was expecting to see one of the following:
A indendifier token based on:
assignment → ● %indendifier %assignment_op literal
at Parser.feed (path\node_modules\nearley\lib\nearley.js:343:27)
at main (path\parse.js:14:12)
if anything is unclear about the scripts I will gladly update the information provided
I'm using the latest moo lexer and nearley
right now I'm testing out these tokens: identifiers, assignment operators, and literals with this line below
in the lexer I have these set as tokens in
lexer.js
nearley grammar in
grammar.ne
made a
parser.js
upon running the parser with
node parse.js example-assignment.yaklr
I get this errorif anything is unclear about the scripts I will gladly update the information provided