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,754 messages   

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

   Message 1,515 of 2,754   
   Jeremy Bennett to tuxisthebirdforme@gmail.com   
   Re: Has anyone hand-written a scanner/pa   
   16 Nov 08 04:06:33   
   
   From: jeremy.bennett@embecosm.com   
      
   On Sat, 15 Nov 2008 09:49:38 -0800, tuxisthebirdforme@gmail.com wrote:   
      
   > I know most people anymore use lex/yacc or some derivative of these   
   > tools to create scanner/parser modules for their compiler projects.  I   
   > was wondering if anyone has developed a scanner or parser that they   
   > personally hand-wrote? ...   
      
   It's old, but take a look at "BCPL: The Language and its Compiler" by   
   Martin Richards and Colin Whitby-Strevens. It includes the listing and   
   description for the BCPL compiler front end (in BCPL of course). It's an   
   example of a hand-written recursive descent compiler with precedence   
   parsing for expressions.   
      
   I believe that makes it a parser for LL(1) language with LR(1)   
   expressions.   
      
   HTH,   
      
      
   Jeremy   
      
   --- 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