Skip to content

Instantly share code, notes, and snippets.

@anoopsarkar
Last active June 3, 2016 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoopsarkar/33ea6b0374578ec8b168860f0fdd4190 to your computer and use it in GitHub Desktop.
Save anoopsarkar/33ea6b0374578ec8b168860f0fdd4190 to your computer and use it in GitHub Desktop.
Error checking for decaflex, the lexical analyzer for the Decaf language
Error: unknown escape sequence in string constant
Error: newline in string constant
Error: string constant is missing closing delimiter
Error: char constant length is greater than one
Error: unterminated char constant
Error: char constant has zero width
Error: unexpected character in input
output/dev/e1.err
Error: unknown escape sequence in string constant
Lexical error: line 11, position 21
output/dev/e2.err
Error: newline in string constant
Lexical error: line 11, position 23
output/dev/e3.err
Error: newline in string constant
Lexical error: line 11, position 21
output/dev/e4.err
Error: newline in string constant
Lexical error: line 11, position 21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment