Skip to content

Instantly share code, notes, and snippets.

@backupbrain
Created October 15, 2018 21:52
Show Gist options
  • Save backupbrain/46bde395dc253ccea6ceea0ba74890c5 to your computer and use it in GitHub Desktop.
Save backupbrain/46bde395dc253ccea6ceea0ba74890c5 to your computer and use it in GitHub Desktop.
LexicalAnalyzer.prototype.generateParseError = function(lineNumber=null, message="") {
error = {"line": lineNumber, "message": message};
return error;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment