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.conflicts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/test/bw.conflicts (limited to 'src/test/bw.conflicts') diff --git a/src/test/bw.conflicts b/src/test/bw.conflicts new file mode 100644 index 0000000..58385d2 --- /dev/null +++ b/src/test/bw.conflicts @@ -0,0 +1,25 @@ + +** Conflict (shift/reduce) in state 2. +** Token involved: W +** This state is reached from main after reading: + +seq W + +** The derivations that appear below have the following common factor: +** (The question mark symbol (?) represents the spot where the derivations begin to differ.) + +main +(?) + +** In state 2, looking ahead at W, shifting is permitted +** because of the following sub-derivation: + +seq ending EOL + W . W W + +** In state 2, looking ahead at W, reducing production +** seq -> seq W +** is permitted because of the following sub-derivation: + +seq ending EOL // lookahead token appears because ending can begin with W +seq W . -- cgit v1.2.3