home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
compcomp
/
syntex
/
wizz.grm
< prev
Wrap
Text File
|
1994-07-13
|
1KB
|
47 lines
@ Wizz 1.0 Grammar @
@ (c) J.François Le Téno @
'+'=Plus. @ ponctuation @
'-'=Minus.
'*'=Time.
'/'=Divide.
'^'=Expo.
'='=Equal.
'('=POpen.
')'=Pclose.
';'=Semicolon.
'"'=Quote.
@ productions @
Start = instruction ';'.
instruction = defn|tag|show|supp|draw|rub|cls|clear|frame|xcut|ycut|use|
saveto|addto|mark|unmark|markall|unmarkall|solve|about|quit|
expression.
expression = ['+'|'-'] term {'+' term | '-' term}.
terme = exponant ['^' exponant].
exponant = factor {'*' factor | '/' factor}.
factor = Fonction|Identifier|Number|'(' expression ')'.
defn = Defn Fonction '(' Identifier ')' '=' expression.
tag = Tag Fonction With '"' String.
show = Show Fonction.
supp = Supp Fonction.
draw = Draw Fonction From expression To expression suite.
suite = [With Number suitesuite].
suitesuite = [Identifier].
rub = Rub Fonction.
cls = Cls.
clear = Clear.
frame = Frame Fonction.
xcut = Xcut From expression To expression.
ycut = Ycut From expression To expression.
use = Use Name.
saveto = Saveto Name.
addto = Addto Name.
mark = Mark Fonction.
unmark = Unmark Fonction.
markall = Markall.
unmarkall = Unmarkall.
solve = Solve expression '=' expression From expression To expression.
about = About.
quit = Quit.