repositories
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e677a67
)
Add grammar
author
Mart Lubbers
<mart@martlubbers.net>
Thu, 17 May 2018 13:48:16 +0000
(15:48 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Thu, 17 May 2018 13:48:16 +0000
(15:48 +0200)
grammar.txt
[new file with mode: 0644]
patch
|
blob
diff --git a/grammar.txt
b/grammar.txt
new file mode 100644
(file)
index 0000000..
fd36183
--- /dev/null
+++ b/
grammar.txt
@@ -0,0
+1,10
@@
+program := declaration* term
+declaration := func '=' term ';'
+term := appterm term
+ | appterm
+appterm := func
+ | ident
+ | '\' ident+ '.' term
+ | '(' term ')'
+func := 'A' | 'B' | ... | 'Z'
+ident := 'a' | 'b' | ... | 'z'