1 | // RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --start-symbol=statement-seq --print-forest | FileCheck %s |
---|---|
2 | |
3 | a + a; |
4 | // CHECK: statement-seq~expression-statement := expression ; |
5 | // CHECK-NEXT: ├─expression~additive-expression := additive-expression + multiplicative-expression |
6 | // CHECK-NEXT: │ ├─additive-expression~IDENTIFIER := |
7 | // CHECK-NEXT: │ ├─+ := |
8 | // CHECK-NEXT: │ └─multiplicative-expression~IDENTIFIER := |
9 | // CHECK-NEXT: └─; := |
10 |