lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 09ababb7 was 09ababb7, checked in by Jiri Svoboda <jiri@…>, 16 years ago |
|
Add Sysel Bootstrap Interpreter (SBI) from Sysel repository rev. 53.
|
-
Property mode
set to
100644
|
|
File size:
215 bytes
|
| Line | |
|---|
| 1 | class Counter is
|
|---|
| 2 | fun count(a : Int; b : Int) is
|
|---|
| 3 | var i : Int;
|
|---|
| 4 |
|
|---|
| 5 | i = a;
|
|---|
| 6 | while i < b do
|
|---|
| 7 | Builtin.WriteLine(i);
|
|---|
| 8 | i = i + 1;
|
|---|
| 9 | end
|
|---|
| 10 |
|
|---|
| 11 | end
|
|---|
| 12 | end
|
|---|
| 13 |
|
|---|
| 14 | class HelloWorld is
|
|---|
| 15 | fun main() is
|
|---|
| 16 | Counter.count(0, 10);
|
|---|
| 17 | end
|
|---|
| 18 | end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.