home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / syntex / wizz.grm < prev   
Text File  |  1994-01-11  |  2KB  |  47 lines

  1. @ Grammaire de Wizz 1.0  @
  2. @ (c) J.François Le Téno @
  3.  
  4. '+'=Plus.                        @ ponctuation @
  5. '-'=Moins.
  6. '*'=Fois.
  7. '/'=Divise.
  8. '^'=Expo.
  9. '='=Egal.
  10. '('=POuverte.
  11. ')'=PFermee.
  12. ';'=PointVirgule.
  13. '"'=Guillemet.
  14.                                  @ productions @
  15. Debut = 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 = ['+'|'-'] terme {'+' terme | '-' terme}.
  21.       terme = exposant ['^' exposant].
  22.         exposant = facteur {'*' facteur | '/' facteur}.
  23.           facteur = Fonction|Identificateur|Nombre|'(' expression ')'.
  24.  
  25.     defn = Defn Fonction '(' Identificateur ')' '=' expression.
  26.     tag = Tag Fonction With '"' Chaine.
  27.     show = Show Fonction.
  28.     supp = Supp Fonction.
  29.     draw = Draw Fonction From expression To expression suite.
  30.       suite = [With Nombre suitesuite].
  31.         suitesuite = [Identificateur].
  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 Nom.
  39.     saveto = Saveto Nom.
  40.     addto = Addto Nom.
  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.