home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,444 of 2,753   
   Hans-Peter Diettrich to All   
   Parser Reversed   
   11 Mar 18 08:32:55   
   
   From: DrDiettrich1@netscape.net   
      
   A grammar can be used to *check* for valid sentences of a language, but   
   it also can be used to *create* valid sentences. For a pretty printer or   
   decompiler test I need a sentence generator for logical expressions. For   
   now the language can be restricted to AND, OR, variables and (kind of)   
   parentheses. Later on NOT and XOR can be added. RPN is one alternative   
   for the "kind of parentheses", eliminating the need for a specific   
   operator precedence.   
      
   Now I'm looking for possible implementations of such a generator, in   
   addition to my own ideas. So far the output can be anything, e.g. source   
   code or machine code, or some tree (AST...).   
      
   Any ideas or references to such projects?   
      
   TIA   
      DoDi   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca