CSCI305.github.io

CSCI 305: Programming Languages

Program Syntax

In Class Verification

Given the following grammar:

<exp> ::= <exp> + <exp> | <exp> * <exp> | ( <exp> )
      | a | b | c

Construct a parse tree for each of these strings:

a + b

a * b + c