From b001661a8a1430e0c3e2af2bf0a4cda35f90648b Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Thu, 17 May 2018 15:48:16 +0200 Subject: [PATCH] Add grammar --- grammar.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 grammar.txt diff --git a/grammar.txt b/grammar.txt new file mode 100644 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' -- 2.20.1