diff options
| Commit | aee3bfe71cba2c1cb7c5e768288281bf42b6baea (patch) | |
|---|---|---|
| Author | 2023-10-19 11:50:08 +0300 | |
| Committer | 2023-10-19 11:50:08 +0300 | |
| Files | 11e095c7426396602e07b5997339cbb8ac9d3616 | |
| uni-projects-aee3bfe71cba2c1cb7c5e768288281bf42b6baea.tar uni-projects-aee3bfe71cba2c1cb7c5e768288281bf42b6baea.tar.gz uni-projects-aee3bfe71cba2c1cb7c5e768288281bf42b6baea.zip | ||
| Parent | 5d36bfc9517c9655c34b3690f3d125839acb375f (diff) | |
(CI/PA1) Reworked certain comments
1 files changed, 8 insertions, 28 deletions
| -rw-r--r-- | Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex | 36 |
diff --git a/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex b/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex index acc81ba..9854f17 100644 --- a/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex +++ b/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex @@ -2,11 +2,6 @@ * The scanner definition for COOL. */ -/* - * Stuff enclosed in %{ %} in the first section is copied verbatim to the - * output, so headers and global definitions are placed here to be visible - * to the code in the file. Don't remove anything that was here initially - */ %{ #include <cool-parse.h> #include <stringtab.h> @@ -71,31 +66,16 @@ unsigned openedComments = 0; %} -/* - * Define names for regular expressions here. +/* + * Info from /usr/class/cs143/cool/include/PA2/cool-parse.h + * Tokens: + * STR_CONST CLASS ELSE FI IF IN INHERITS ISVOID LET LOOP POOL THEN WHILE CASE ESAC NEW OF NOT DARROW TYPEID OBJECTID INT_CONST BOOL_CONST ASSIGN LE ERROR + * yylval types: + * Boolean boolean; + * Symbol symbol; + * char *error_msg; */ -/* -Info from /usr/class/cs143/cool/include/PA2/cool-parse.h -Token: -STR_CONST CLASS ELSE FI IF IN INHERITS ISVOID LET LOOP POOL THEN WHILE CASE ESAC NEW OF NOT DARROW TYPEID OBJECTID INT_CONST BOOL_CONST ASSIGN LE -ERROR -yylval types: - Boolean boolean; - Symbol symbol; - Program program; - Class_ class_; - Classes classes; - Feature feature; - Features features; - Formal formal; - Formals formals; - Case case_; - Cases cases; - Expression expression; - Expressions expressions; - char *error_msg; -*/ %x MULTILINE |
