diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1998-08-27 13:51:39 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1998-08-27 13:51:39 -0700 |
commit | 80a093b29e752ac54172945174c7cd59cec1fd05 (patch) | |
tree | 878b128b0bfbd427bff598b9db9be9cbf462fbec /gcc/ch/parse.h | |
parent | fc5074d4c9e4e1877450249c436f7d8af846b12b (diff) | |
download | gcc-80a093b29e752ac54172945174c7cd59cec1fd05.zip gcc-80a093b29e752ac54172945174c7cd59cec1fd05.tar.gz gcc-80a093b29e752ac54172945174c7cd59cec1fd05.tar.bz2 |
�
Migrate from devo/gcc/ch.
From-SVN: r22034
Diffstat (limited to 'gcc/ch/parse.h')
-rw-r--r-- | gcc/ch/parse.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/gcc/ch/parse.h b/gcc/ch/parse.h new file mode 100644 index 0000000..6b6b159 --- /dev/null +++ b/gcc/ch/parse.h @@ -0,0 +1,76 @@ +typedef union { + long itype; + tree ttype; + enum tree_code code; + char *filename; + int lineno; +} YYSTYPE; +extern YYSTYPE yylval; + +enum terminal +{ + /*EOF = 0,*/ + last_char_nonterminal = 256, + /* Please keep these in alphabetic order, for easier reference and updating. + */ + ABSOLUTE, ACCESS, AFTER, ALL, ALLOCATE, AND, ANDIF, ARRAY, + ARROW, ASGN, ASM_KEYWORD, ASSERT, ASSOCIATION, AT, + BASED, BEGINTOKEN, BIN, BIT, BITSTRING, BODY, BOOLS, BUFFER, + BUFFERNAME, BUFFER_CODE, BY, + CALL, CASE, CAUSE, CDDEL, CHAR, CHARS, COLON, COMMA, CONCAT, CONST, + CONTINUE, CYCLE, + DCL, DELAY, DIV, DO, DOT, DOWN, DYNAMIC, + ELSE, ELSIF, END, ENTRY, EQL, ESAC, EVENT, EVENT_CODE, EVER, + EXCEPTIONS, EXIT, + EXPR, /* an expression that has been pushed back */ + FI, FLOATING, FOR, FORBID, + GENERAL, GOTO, GRANT, GT, GTE, + HEADEREL, + IF, IGNORED_DIRECTIVE, IN, INIT, INOUT, INLINE, + LC, LOC, LPC, LPRN, LT, LTE, + MOD, MODULE, MUL, + NAME, NE, NEW, NEWMODE, NONREF, NOT, NUMBER, + OD, OF, ON, OR, ORIF, + PARAMATTR, PERVASIVE, PLUS, POWERSET, + PREFIXED, PRIORITY, PROC, PROCESS, + RANGE, RC, READ, READTEXT, RECEIVE, RECURSIVE, REF, REGION, REM, + RESULT, RETURN, RETURNS, ROUND, ROW, RPC, RPRN, RPRN_COLON, + SAME, SC, SEIZE, SEND, SET, SHARED, SIGNAL, SIGNALNAME, SIMPLE, + SINGLECHAR, SPEC, START, STATIC, STEP, STOP, STREAM, STRING, + STRUCT, SUB, SYN, SYNMODE, + TERMINATE, TEXT, THEN, THIS, TIMEOUT, TO, TRUNC, TYPENAME, + UP, USAGE, + VARYING, + WHERE, WHILE, WITH, + XOR, + +/* These tokens only used within ch-lex.l to process compiler directives */ + ALL_STATIC_OFF, ALL_STATIC_ON, EMPTY_OFF, EMPTY_ON, + GRANT_FILE_SIZE, PROCESS_TYPE_TOKEN, RANGE_OFF, RANGE_ON, + SEND_BUFFER_DEFAULT_PRIORITY, SEND_SIGNAL_DEFAULT_PRIORITY, + SIGNAL_CODE, SIGNAL_MAX_LENGTH, USE_SEIZE_FILE, USE_SEIZE_FILE_RESTRICTED, + USE_GRANT_FILE, + + /* These tokens are recognized, and reported as errors, by the lexer. */ + CONTEXT, REMOTE, + + /* These tokens are recognized in the lexer, and completely + ignored. They represent unimplemented features in the + current version of GNU CHILL. */ + NOPACK, PACK, + +/* These tokens are recognized in the lexer, and returned + as reserved tokens, to prevent users from using them + accidently (they'll cause a parser syntax error). They + represent unimplemented features in the current version + of GNU CHILL. */ + POS, /*STEP, ROW,*/ + +/* This token is passed back to the parser when an the main + input file (not a seize file) has reached end-of-file. */ + END_PASS_1, + + EMPTY, UMINUS, + + dummy_last_terminal +}; |