annotate python/ppci/c3/grammar.txt @ 393:6ae782a085e0

Added init program
author Windel Bouwman
date Sat, 17 May 2014 21:17:40 +0200
parents 5477e499b039
children
rev   line source
354
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
1
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
2
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
3 stmt: if_stmt | while_stmt | for_stmt | assign_stmt | compound_stmt
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
4
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
5 compound_stmt: '{' stmt ';' stmt ... '}'
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
6 if_stmt: 'if' '(' cond ')' stmt
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
7 assign_stmt: lhs '=' expr
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
8
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
9 cond:
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
10
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
11 expr:
5477e499b039 Added some sort of string functionality
Windel Bouwman
parents:
diff changeset
12