added example files for @include
This commit is contained in:
parent
9230e7b857
commit
1e029bd604
|
@ -0,0 +1,5 @@
|
|||
|
||||
foo( {
|
||||
|
||||
println("say Hello!");
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue