diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2024-02-19 02:25:28 -0800 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2024-02-19 02:25:28 -0800 |
commit | ffc6388571004b17e3a3dee2511ec99076ee803a (patch) | |
tree | ba14dfc0fc0b1beae949e12b8853fa690d588d2a /grammars/c/grammar.txt |
initial dump
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 + ( ) { } [ ] + ; , + - + ! % * & / << >> ^ | + -= += != %= *= &= /= <<= == >>= ^= |= + && || ++ -- + < <= > >= = + . -> ? : |