Re: Pascal analyzer - Yacc?



On 2008-10-17, Rudy Velthuis <newsgroups@xxxxxxxxxxxx> wrote:
I've no idea about yacc grammars, but if you use FPC/Lazarus, have a
look at the "passrc" package. It contains the parser used for, among
others, the fpdoc documentation generator.

IIRC, the first FPC compiler versions were based on a YACC generated
parser (probably produced by TPYACC). The source looked terrible, just
like all YACC-generated files do.

Maybe, but that is then long before my time (1998), and thus also predating
delphi support.

Note that yacc based sources are used for the header tool,
to parse C, but afaik not for the Pascal language parsers (compiler, parser
for doc purposes (passrc), prettyprinter (ptop))
.



Relevant Pages

  • Re: Pascal analyzer - Yacc?
    ... It contains the parser used for, ... others, the fpdoc documentation generator. ... IIRC, the first FPC compiler versions were based on a YACC generated ...
    (comp.lang.pascal.delphi.misc)
  • Re: prefix for yacc/bison
    ... The grammars that yacc accepts are a subset ... the parser mechanisms to their hearts content. ... means a bounded lookahead bottom-up machine. ...
    (alt.os.linux)
  • Re: Flex&Bison: how to write a parser for this grammar?
    ... bison? ... it's better to rely on a parser generator than on hand-written ... a yacc parser will be simpler if the grammar is suitable so ... need for flex start conditions there as I feared there might be. ...
    (comp.programming)
  • Csup cvsmode build discussion
    ... lex and yacc files that I would like to discuss. ... I implemented the RCS parser required to operate on RCS files ... I've been compiling the parser and tokenizer with the help of bison ... Now, the base system already have flex, but the flex version in base is heavily ...
    (freebsd-hackers)
  • Question on %nonassoc-directive in LALR(1) parser generators
    ... I have a question about the %nonassoc-directive in LALRparser ... Yacc defines terminals attributed with %nonassoc as ... expr -> expr .'=' expr ... Associativity of conflict symbol | Perform ...
    (comp.compilers)