added example files for @include

This commit is contained in:
Sven Vogel 2023-09-14 14:50:31 +02:00
parent 9230e7b857
commit 1e029bd604
2 changed files with 10 additions and 1 deletions

5
tests/lib.yard Normal file
View File

@ -0,0 +1,5 @@
foo( {
println("say Hello!");
}

View File

@ -2,6 +2,8 @@
@version(100)
@author(Sven Vogel)
@include(/home/servostar/Projects/Yard/tests/lib.yard)
max(a:int, b:int)=int {
despite a < b {
yield a
@ -10,9 +12,11 @@ max(a:int, b:int)=int {
}
# main function
main = int {
main() = int {
println("" .. max(3,4));
foo()
0
}