Package org . sablecc . simplec ;
Helpers
Tokens
dot | = | '.' | |
comma | = | ',' | |
colon | = | ':' | |
semicolon | = | ';' | |
l_par | = | '(' | |
r_par | = | ')' | |
l_bracket | = | '[' | |
r_bracket | = | ']' | |
l_brace | = | '{' | |
r_brace | = | '}' | |
star | = | '*' | |
div | = | '/' | |
mod | = | '%' | |
ampersand | = | '&' | |
plus | = | '+' | |
minus | = | '-' | |
caret | = | '^' | |
tilde | = | '~' | |
excl_mark | = | '!' | |
quest_mark | = | '?' | |
bar | = | '|' | |
ellipsis | = | '...' | |
equal | = | '=' | |
eq | = | '==' | |
neq | = | '!=' | |
lt | = | '<' | |
lteq | = | '<=' | |
gt | = | '>' | |
gteq | = | '>=' | |
arrow | = | '->' | |
plus_plus | = | '++' | |
minus_minus | = | '--' | |
shl | = | '<<' | |
shr | = | '>>' | |
ampersand_ampersand | = | '&&' | |
bar_bar | = | '||' | |
star_equal | = | '*=' | |
div_equal | = | '/=' | |
mod_equal | = | '%=' | |
plus_equal | = | '+=' | |
minus_equal | = | '-=' | |
shl_equal | = | '<<=' | |
shr_equal | = | '>>=' | |
ampersand_equal | = | '&=' | |
caret_equal | = | '^=' | |
bar_equal | = | '|=' | |
case | = | 'case' | |
default | = | 'default' | |
if | = | 'if' | |
else | = | 'else' | |
switch | = | 'switch' | |
while | = | 'while' | |
do | = | 'do' | |
for | = | 'for' | |
goto | = | 'goto' | |
continue | = | 'continue' | |
break | = | 'break' | |
return | = | 'return' | |
typedef | = | 'typedef' | |
extern | = | 'extern' | |
static | = | 'static' | |
auto | = | 'auto' | |
register | = | 'register' | |
void | = | 'void' | |
char | = | 'char' | |
int | = | 'int' | |
short | = | 'short' | |
long | = | 'long' | |
float | = | 'float' | |
double | = | 'double' | |
signed | = | 'signed' | |
unsigned | = | 'unsigned' | |
struct | = | 'struct' | |
union | = | 'union' | |
enum | = | 'enum' | |
const | = | 'const' | |
volatile | = | 'volatile' | |
sizeof | = | 'sizeof' | |
identifier | = | nondigit ( digit | nondigit ) * | |
floating_constant | = | fractional_constant exponent_part ? floating_suffix ? | digit_sequence exponent_part floating_suffix ? | |
string_litteral | = | 'L' ? '"' s_char_sequence ? '"' | |
integer_constant | = | decimal_constant integer_suffix ? | octal_constant integer_suffix ? | hexadecimal_constant integer_suffix ? | |
character_constant | = | 'L' ? ''' c_char_sequence ''' | |
blank | = | ( cr | lf | tab | ' ' ) + | |
comment | = | '/*' not_star * '*' + ( not_star_slash not_star * '*' + ) * '/' |
Productions
This site has been last updated by the web master
on 2007/6/24.