Created
July 31, 2016 13:57
-
-
Save ilyarudyak/150778f9b7cf2d6c1186d0363377fcc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1) integers, identifiers and special notations* | |
------------------------------------------------- | |
#define INT_CONST 276 | |
#define LET_STMT 285 | |
#define TYPEID 278 | |
#define OBJECTID 279 | |
#define ISVOID 274 | |
- it seems only *few* special notations have tokens | |
#define DARROW 272 | |
#define ASSIGN 280 | |
#define LE 282 | |
(2) strings | |
------------- | |
#define STR_CONST 275 | |
(3) comments | |
------------- | |
n/a | |
(4) keywords | |
------------- | |
#define CLASS 258 | |
#define ELSE 259 | |
#define BOOL_CONST 277 | |
#define FI 260 | |
#define IF 261 | |
#define IN 262 | |
#define INHERITS 263 | |
#define LET 264 | |
#define LOOP 265 | |
#define POOL 266 | |
#define THEN 267 | |
#define WHILE 268 | |
#define CASE 269 | |
#define ESAC 270 | |
#define NEW 273 | |
#define OF 271 | |
#define NOT 281 | |
(5) whitespace | |
---------------- | |
n/a | |
error | |
------ | |
#define ERROR 283 | |
---------------------------------------------------------- | |
*) Tokens are from cool-parse.h. | |
Numeration is the same as in The Cool Reference Manual, part 10. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment