Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
sav08:simple_programming_language [2008/02/28 07:59] vkuncak |
sav08:simple_programming_language [2009/02/22 16:48] vkuncak |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== A Small Programming Language ====== | + | ====== A Simple Programming Language ====== |
Basic statement is assignment, control structures are 'if' and 'while': | Basic statement is assignment, control structures are 'if' and 'while': | ||
Line 8: | Line 8: | ||
while (F) c1 | while (F) c1 | ||
- | We can describe the syntax of this language using a [[:Notes on Context-Free Grammars|context-free grammar]]: | + | We can describe the syntax of this language using a [[:Context-Free Grammars|Context-Free Grammar]]: |
c ::= x=T | (if (F) c else c) | c ; c | (while (F) c) | c ::= x=T | (if (F) c else c) | c ; c | (while (F) c) |