home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / compcomp / syntex / wizz.grm < prev   
Text File  |  1994-07-13  |  1KB  |  47 lines

  1. @ Wizz 1.0 Grammar       @
  2. @ (c) J.François Le Téno @
  3.  
  4. '+'=Plus.                        @ ponctuation @
  5. '-'=Minus.
  6. '*'=Time.
  7. '/'=Divide.
  8. '^'=Expo.
  9. '='=Equal.
  10. '('=POpen.
  11. ')'=Pclose.
  12. ';'=Semicolon.
  13. '"'=Quote.
  14.                                  @ productions @
  15. Start = instruction ';'.
  16.   instruction = defn|tag|show|supp|draw|rub|cls|clear|frame|xcut|ycut|use|
  17.                 saveto|addto|mark|unmark|markall|unmarkall|solve|about|quit|
  18.                 expression.
  19.  
  20.     expression = ['+'|'-'] term {'+' term | '-' term}.
  21.       terme = exponant ['^' exponant].
  22.         exponant = factor {'*' factor | '/' factor}.
  23.           factor = Fonction|Identifier|Number|'(' expression ')'.
  24.  
  25.     defn = Defn Fonction '(' Identifier ')' '=' expression.
  26.     tag = Tag Fonction With '"' String.
  27.     show = Show Fonction.
  28.     supp = Supp Fonction.
  29.     draw = Draw Fonction From expression To expression suite.
  30.       suite = [With Number suitesuite].
  31.         suitesuite = [Identifier].
  32.     rub = Rub Fonction.
  33.     cls = Cls.
  34.     clear = Clear.
  35.     frame = Frame Fonction.
  36.     xcut = Xcut From expression To expression.
  37.     ycut = Ycut From expression To expression.
  38.     use = Use Name.
  39.     saveto = Saveto Name.
  40.     addto = Addto Name.
  41.     mark = Mark Fonction.
  42.     unmark = Unmark Fonction.
  43.     markall = Markall.
  44.     unmarkall = Unmarkall.
  45.     solve = Solve expression '=' expression From expression To expression.
  46.     about = About.
  47.     quit = Quit.