From 8abc67488741e29663de0f52a1dbd2a4ec59c857 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Tue, 13 Aug 2019 00:52:58 +0800 Subject: [PATCH] Add new rules --- version0.3/ebnf.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/version0.3/ebnf.cpp b/version0.3/ebnf.cpp index 19cba5f..963b387 100644 --- a/version0.3/ebnf.cpp +++ b/version0.3/ebnf.cpp @@ -108,3 +108,20 @@ ::= [ ] <(> <)> ( <;>)|(<{> { <;> } <}>) { ( )| }|[ ] <(> <)> ( <;>)|(<{> { <;> } <}>) + ::= IDENTIFIER + ::= NUMBER + ::= STRING + ::= <[> <]> + ::= (||||||| <,>)|(|||||||) + ::= <[> <]> + ::= <[> <]> + ::= ( <:> ||||||| <,>)|( <:> |||||||) + ::= <{> <}> + ::= ( <,>)| + ::= <(> <)> <{> <}> + ::= <(> <)> + + ::= ||||| <;> + + ::= <=> |||||||| <;> + ::= <=> |||||||| <;>