File: grammar.yab

package info (click to toggle)
yabasic 1%3A2.78.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,356 kB
  • ctags: 1,575
  • sloc: ansic: 10,420; sh: 9,406; makefile: 17
file content (23 lines) | stat: -rwxr-xr-x 492 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!./yabasic

#   This demo just tests, if the grammar is still okay;
#   it need not run, only compile. So we exit right away :-)
exit 0

# test for bug in version 2.680
if (!eof(1)) exit
if (!eof(#1)) exit
print #foo bar

# test for expression bug from 2.681
if (1<2 and 7) exit

# bug in 2.690
print a/(b*c)

# variuous forms of i/o
close #1:close #a+1:close 1:close a
open #1,"a":open #a,"a":open #(a+1),"a"
print #1 "a":print #a "a":print #(a+1) "a"
input #1 a:input #a a:input #(a+1) a