Compiler/syntax analyzer: Difference between revisions
Content added Content deleted
Line 6,231: | Line 6,231: | ||
if (@gettok.curr).tok ~== tok then { |
if (@gettok.curr).tok ~== tok then { |
||
error(@gettok.curr, |
error(@gettok.curr, |
||
msg || ": Expecting '" || tok || "', found '" || |
msg || ": Expecting '" || text(tok) || "', found '" || |
||
(@gettok.curr).tok || "'") |
text((@gettok.curr).tok) || "'") |
||
} |
} |
||
return @gettok.nxt |
return @gettok.nxt |
||
Line 6,447: | Line 6,447: | ||
String "\n" |
String "\n" |
||
;</pre> |
;</pre> |
||
=={{header|J}}== |
=={{header|J}}== |