Parser

Grammar:

Input

Sample:

Syntax Diagrams

Output