Skip to content

Instantly share code, notes, and snippets.

@To1ne
Created January 3, 2023 15:50
Show Gist options
  • Save To1ne/a21b5f38edeada462e6e2eba4582beec to your computer and use it in GitHub Desktop.
Save To1ne/a21b5f38edeada462e6e2eba4582beec to your computer and use it in GitHub Desktop.
diff --git a/parse.h b/parse.h
index b65ad8f..174e702 100644
--- a/parse.h
+++ b/parse.h
@@ -49,7 +49,10 @@ extern int yydebug;
# define YYTOKENTYPE
enum yytokentype
{
+ YYEMPTY = -2,
END_OF_INPUT = 0,
+ YYerror = 256, /* error */
+ YYUNDEF = 257, /* "invalid token" */
keyword_class = 258,
keyword_module = 259,
keyword_def = 260,
@To1ne
Copy link
Author

To1ne commented Jan 3, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment