1
0
mirror of https://github.com/yhirose/cpp-peglib.git synced 2025-04-07 10:52:08 +00:00

Added another sample for PL/0.

This commit is contained in:
yhirose 2015-08-05 23:06:58 -04:00
parent 7cc8d51162
commit 906125e7d3

View File

@ -0,0 +1,18 @@
VAR x, squ;
PROCEDURE square;
BEGIN
squ:= x * x
END;
BEGIN
x := 1;
WHILE x <= 10 DO
BEGIN
CALL square;
! squ;
x := x + 1
END
END.