summaryrefslogtreecommitdiff
path: root/grammars/c/grammar.txt
diff options
context:
space:
mode:
Diffstat (limited to 'grammars/c/grammar.txt')
-rw-r--r--grammars/c/grammar.txt17
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
+ ( ) { } [ ]
+ ; ,
+ - + ! % * & / << >> ^ |
+ -= += != %= *= &= /= <<= == >>= ^= |=
+ && || ++ --
+ < <= > >= =
+ . -> ? :
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback