view python/ppci/c3/grammar.txt @ 394:988f3fb861e4

c3 code generator rewrite
author Windel Bouwman
date Thu, 22 May 2014 08:14:12 +0200
parents 5477e499b039
children
line wrap: on
line source



stmt: if_stmt | while_stmt | for_stmt | assign_stmt | compound_stmt

compound_stmt: '{' stmt ';' stmt ... '}'
if_stmt: 'if' '(' cond ')' stmt
assign_stmt: lhs '=' expr

cond:

expr: