From 6053f422b20ecfebc00528385f25d60ba833405b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9?= Date: Sat, 13 Jan 2024 18:16:20 +0100 Subject: [PATCH] feature(bnf): add start of lexical syntax of LobsterLang (BNF) --- BNF.md | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 BNF.md diff --git a/BNF.md b/BNF.md new file mode 100644 index 0000000..492ff34 --- /dev/null +++ b/BNF.md @@ -0,0 +1,98 @@ +Lexical Syntax + + ::= + + ::= + | , ... + + ::= + | , + + ::= + | ( ) + | ( ) + | ( {}* ) + + ::= + + ::= + | || + + ::= + | || + + ::= + | || + + ::= + | && + + ::= + | == + | != + + ::= + | <= + | >= + | < + | > + + ::= + | + + | - + + ::= + | * + | / + | % + + ::= + | -- + | ++ + | !! + + ::= + | + + ::= + | (| {}* |) + + ::= + | + | (| |) + + ::= + | , + + + ::= + | + + ::= + | + + ::= = + + ::= @ + | ~ + | ! + + ::= {}? + + ::= + | = + + ::= + | [ ] + | [ , ] + + ::= + | , + + ::= + | + + ::= {}? + + ::= if ( ) + | if ( ) else