5 # RUN: clang-pseudo -grammar %s -print-graph | FileCheck %s --check-prefix=GRAPH
8 # GRAPH-NEXT: _ := • expr EOF
9 # GRAPH-NEXT: expr := • id
10 # GRAPH-NEXT: id := • IDENTIFIER
12 # GRAPH-NEXT: _ := expr • EOF
14 # GRAPH-NEXT: expr := id •
16 # GRAPH-NEXT: id := IDENTIFIER •
18 # GRAPH-NEXT: _ := expr EOF •
20 # RUN: clang-pseudo -grammar %s -print-table | FileCheck %s --check-prefix=TABLE
23 # TABLE-NEXT: IDENTIFIER: shift state 3
24 # TABLE-NEXT: expr: go to state 1
25 # TABLE-NEXT: id: go to state 2
27 # TABLE-NEXT: EOF: shift state 4
29 # TABLE-NEXT: EOF: reduce by rule 2 'expr := id'
31 # TABLE-NEXT: EOF: reduce by rule 1 'id := IDENTIFIER'