Skip to content

Commit

Permalink
Part 11
Browse files Browse the repository at this point in the history
  • Loading branch information
rspivak committed Sep 20, 2016
1 parent 6f74208 commit 53ad5d2
Show file tree
Hide file tree
Showing 6 changed files with 952 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Source code for the series **Let's Build A Simple Interpreter**
+ [Let's Build A Simple Interpreter. Part 8.](http://ruslanspivak.com/lsbasi-part8/)
+ [Let's Build A Simple Interpreter. Part 9.](http://ruslanspivak.com/lsbasi-part9/)
+ [Let's Build A Simple Interpreter. Part 10.](http://ruslanspivak.com/lsbasi-part10/)
+ [Let's Build A Simple Interpreter. Part 11.](http://ruslanspivak.com/lsbasi-part11/)
7 changes: 7 additions & 0 deletions part11/python/nameerror1.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PROGRAM NameError1;
VAR
a : INTEGER;

BEGIN
a := 2 + b;
END.
8 changes: 8 additions & 0 deletions part11/python/nameerror2.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PROGRAM NameError2;
VAR
b : INTEGER;

BEGIN
b := 1;
a := b + 2;
END.
12 changes: 12 additions & 0 deletions part11/python/part11.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PROGRAM Part11;
VAR
number : INTEGER;
a, b : INTEGER;
y : REAL;

BEGIN {Part11}
number := 2;
a := number ;
b := 10 * a + 10 * number DIV 4;
y := 20 / 7 + 3.14
END. {Part11}
Loading

0 comments on commit 53ad5d2

Please sign in to comment.