parser-states.nv
· 793 B · Text
Originalformat
Playground
> "State:" Pending
"Symbols:" 0
> "State:" Fact
> "State:" Pending
"Symbols:" $any
> "State:" Left
> "State:" Left
"Symbols:" 0
> "State:" Right
> "State:" Left
"Symbols:" $any
> "State:" Left
> "State:" Right
"Symbols:" 0
> "State:" Pending
> "State:" Right
"Symbols:" $any
> "State:" Right
> "State:" Fact
"Symbols:" 0
> "State:" Pending
> "State:" Fact
"Symbols:" $any
> "State:" Fact
> "Expected End State:" $state
"State:" $state
> "Test passed!"
> "Expected End State:" $state
"State:" $other
> "Test failed..."
>> "Expected End State:" Pending
"State:" Pending
"Symbols:" (
0 1 2 2 5 2 2 2 3 2 4 0
1 1 1 2 1 1 0
3 1 1
0
1 1 1 2 1 2 0
1 1 1 3 1 2
0
1 1 1 0
4 1 1
0
)
| 1 | > "State:" Pending |
| 2 | "Symbols:" 0 |
| 3 | > "State:" Fact |
| 4 | |
| 5 | > "State:" Pending |
| 6 | "Symbols:" $any |
| 7 | > "State:" Left |
| 8 | |
| 9 | > "State:" Left |
| 10 | "Symbols:" 0 |
| 11 | > "State:" Right |
| 12 | |
| 13 | > "State:" Left |
| 14 | "Symbols:" $any |
| 15 | > "State:" Left |
| 16 | |
| 17 | > "State:" Right |
| 18 | "Symbols:" 0 |
| 19 | > "State:" Pending |
| 20 | |
| 21 | > "State:" Right |
| 22 | "Symbols:" $any |
| 23 | > "State:" Right |
| 24 | |
| 25 | > "State:" Fact |
| 26 | "Symbols:" 0 |
| 27 | > "State:" Pending |
| 28 | |
| 29 | > "State:" Fact |
| 30 | "Symbols:" $any |
| 31 | > "State:" Fact |
| 32 | |
| 33 | > "Expected End State:" $state |
| 34 | "State:" $state |
| 35 | > "Test passed!" |
| 36 | |
| 37 | > "Expected End State:" $state |
| 38 | "State:" $other |
| 39 | > "Test failed..." |
| 40 | |
| 41 | >> "Expected End State:" Pending |
| 42 | "State:" Pending |
| 43 | "Symbols:" ( |
| 44 | 0 1 2 2 5 2 2 2 3 2 4 0 |
| 45 | 1 1 1 2 1 1 0 |
| 46 | 3 1 1 |
| 47 | 0 |
| 48 | 1 1 1 2 1 2 0 |
| 49 | 1 1 1 3 1 2 |
| 50 | 0 |
| 51 | 1 1 1 0 |
| 52 | 4 1 1 |
| 53 | 0 |
| 54 | ) |