diff options
Diffstat (limited to 'grammars/c/grammar.txt')
-rw-r--r-- | grammars/c/grammar.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/grammars/c/grammar.txt b/grammars/c/grammar.txt new file mode 100644 index 0000000..486f319 --- /dev/null +++ b/grammars/c/grammar.txt @@ -0,0 +1,17 @@ +KEYWORDS list + switch volatile case while do else const for if + +IDENT regex + [a-zA-Z_][0-9a-zA-Z_]* + +INT regex + [0-9]+ + +OPS list + ( ) { } [ ] + ; , + - + ! % * & / << >> ^ | + -= += != %= *= &= /= <<= == >>= ^= |= + && || ++ -- + < <= > >= = + . -> ? : |