comparison lwbasic/lwbasic.h @ 34:bfea77812e64

Start of assignment code
author Lost Wizard (lost@starbug3)
date Fri, 04 Feb 2011 21:27:03 -0700
parents 890a8f688889
children cdb0175e1063
comparison
equal deleted inserted replaced
33:890a8f688889 34:bfea77812e64
84 token_kw_returns, /* RETURNS keyword */ 84 token_kw_returns, /* RETURNS keyword */
85 token_kw_integer, /* INTEGER keyword */ 85 token_kw_integer, /* INTEGER keyword */
86 token_kw_endsub, /* ENDSUB keyword */ 86 token_kw_endsub, /* ENDSUB keyword */
87 token_kw_endfunction, /* ENDFUNCTION keyword */ 87 token_kw_endfunction, /* ENDFUNCTION keyword */
88 token_kw_dim, /* DIM keyword */ 88 token_kw_dim, /* DIM keyword */
89 token_op_assignment, /* assignment operator */
89 token_identifier, /* an identifier (variable, function, etc. */ 90 token_identifier, /* an identifier (variable, function, etc. */
90 token_char, /* single character; fallback */ 91 token_char, /* single character; fallback */
91 token_uint, /* unsigned integer up to 32 bits */ 92 token_uint, /* unsigned integer up to 32 bits */
92 token_int, /* signed integer up to 32 bits */ 93 token_int, /* signed integer up to 32 bits */
93 token_eol, /* end of line */ 94 token_eol, /* end of line */
112 #endif 113 #endif
113 114
114 #ifndef __lexer_c_seen__ 115 #ifndef __lexer_c_seen__
115 extern void lexer(cstate *state); 116 extern void lexer(cstate *state);
116 extern char *lexer_return_token(cstate *state); 117 extern char *lexer_return_token(cstate *state);
118 extern char *lexer_token_name(int token);
117 #endif 119 #endif
118 120
119 #ifndef __emit_c_seen__ 121 #ifndef __emit_c_seen__
120 extern void emit_prolog(cstate *state, int vis); 122 extern void emit_prolog(cstate *state, int vis);
121 extern void emit_epilog(cstate *state); 123 extern void emit_epilog(cstate *state);