File: compile.yab

package info (click to toggle)
yabasic 1%3A2.91.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 4,168 kB
  • sloc: ansic: 12,434; sh: 4,417; makefile: 21
file content (7 lines) | stat: -rwxr-xr-x 185 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
#!./yabasic

compile("sub foo(x):return x+1:end sub")
for a=1 to 2
  found = execute("foo",a)
  if found <> a+1 print "Expected " + str$(a+1) + "but found " + str$(found):exit 1
next a