Monday, 30 May 2016

Shift/Reduce demonstration - 1 [Happy]

Happy is a LALR(1) parser.

The production: (to get an expression)
Expr16 :: Expr17 'cross' Expr16
             | Expr17
 The syntax to demonstrate:
ZED X == A x B x C END

1st part

2nd part

Summary


No comments :

Post a Comment