From 843230359b2157212c4e93b51994f0fde90d808b Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 31 Aug 2021 13:37:19 +0200 Subject: Added endign work in lexer --- src/test/bw.mly | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/bw.mly (limited to 'src/test/bw.mly') diff --git a/src/test/bw.mly b/src/test/bw.mly new file mode 100644 index 0000000..8b022bd --- /dev/null +++ b/src/test/bw.mly @@ -0,0 +1,18 @@ +%token B +%token W +%token EOL + +%start main + +%% + +seq : {} + | seq B {} + | seq W {} + ; + +ending : {} + | W W W {} + ; + +main : seq ending EOL {} -- cgit v1.2.3