Skip to content

Commit 45a3bdd

Browse files
committed
[add] an example that demonstrates printing.
1 parent 2981b05 commit 45a3bdd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This language is still currently experimental with many more features to come.
2424
* [Closures](examples/closure.ls).
2525
* [Recursion](examples/recursion.ls).
2626
* [Blocks](examples/blocks.ls).
27-
* Printing.
27+
* [Printing](examples/print.ls).
2828
* Lambda expressions/Anonymous functions.
2929
* Static & Instance getters.
3030
* Static class methods.

examples/print.ls

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var x = 10;
2+
3+
print x;
4+
5+
x = "printing a string.";
6+
7+
class Person {}
8+
9+
print Person;
10+
print Person();

0 commit comments

Comments
 (0)