Path: news1.icaen!news.uiowa.edu!chi-news.cic.net!feeder.chicago.cic.net!EU.net!news.mathworks.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!portc02.blue.aol.com!newstf02.news.aol.com!audrey01.news.aol.com!not-for-mail From: mikew50@aol.com (MikeW50) Newsgroups: comp.sys.apple2.programmer Subject: Re: GSoft Specification Date: 4 Feb 1997 21:05:56 GMT Organization: AOL http://www.aol.com Lines: 88 Message-ID: <19970204205200.PAA25696@ladder01.news.aol.com> References: <19970204025401.VAA08221@ladder01.news.aol.com> NNTP-Posting-Host: ladder01.news.aol.com X-Admin: news@aol.com Part 3 The GSoft Command Set --------------------- Operations ---------- = + - * / ^ < > <= =< >= => <> >< ( ) AND NOT OR Declarations ------------ DIM identifier '(' expression [ ',' expression ]* ')' Support will be included for defining records and for setting the type of a variable (e.g. forcing I to be an integer, rather than a real), but the exact syntax has not yet been fixed. Arithmetic Functions -------------------- ABS '(' expression ')' ATN '(' expression ')' COS '(' expression ')' DEF FN --- EXP '(' expression ')' INT '(' expression ')' LOG '(' expression ')' RND '(' expression ')' SGN '(' expression ')' SIN '(' expression ')' SQR '(' expression ')' TAN '(' expression ')' Control ------- DO [ UNTIL | WHILE ] expression LOOP [ UNTIL | WHILE ] expression FOR identifier '=' expression TO expression [ STEP expression ] NEXT [ identifier [ ',' [ identifier ] ]* ] IF expression [ THEN | GOTO | THEN GOTO ] line IF expression THEN statement [ ':' statement ]* IF expression THEN ELSE IF expression THEN ELSE END IF SELECT CASE expression CASE expression [ TO expression ] [ ',' expression [ TO expression ] ]* END SELECT WHILE expression WEND END GOSUB line GOTO line [ LET ] l-value = expression ON GOSUB line [ ',' line ]* ON GOTO line [ ',' line ]* ONERR GOTO line POP REM any character sequence RESUME RETURN STOP