Re: From a JavaCC code to Delphi? About grammars and that stuff that i don't know

From: mamcx (thismail_at_notexist.com)
Date: 02/03/05


Date: Thu, 03 Feb 2005 14:40:53 -0500


> http://portableminds.com/plinks.htm

Ok, done. While waiting for a reply i read a litle more about this.
Thanks for the info

> A grammar is the syntax rules of a language. BNF is a way of expressing
> a grammar.

Fine.

> Depending on the complexity of your grammar, it can be expressed
> through a regular expression. According to the parser book, available
> through the link I posted above, Regular expressions exist for all Type
> 3 grammars.

Err.... this mean i can find a similar RegEx for say, this query parser :)?

> I haven't checked the complexity of the grammar used there, but still,
> you'll get better results finding (or adapting) a parser genenerator
> that generates Delphi code.

So is best avoid doing this with RegEx?

> Google for Delphi Parser Generators. The link I posted above will lead
> to some coco-based generators. This might be interesting too:
>
> http://www.lischke-online.de/DCG.php

I download others, and this make at least SOME sense... But still i'm
lost...

Anyway i do a try and let se what happend....

Thanks for the input...



Relevant Pages

  • Re: Parsing implicit operators with recursive descent?
    ... with a recursive descent parser? ... Let us take regular expressions as an example. ... The above grammar doesn't account for regular expressions ... whole_regex:= regex ...
    (comp.compilers)
  • Re: coupling LALR with a scanner?
    ... The parser can easily make the decision, ... grammars have no 'tokens' and 'grammar rules', ... regular expression' (of course the content of the regular expression follows ...
    (comp.compilers)
  • Re: lex/yacc efficiency tradeoffs
    ... This suggests letting lex gobble up as much ... Once invoked, the lexer will gladly ... THAT THE PARSER MIGHT CONSIDER ... As always, the devil is in the details (of the grammar, etc.) ...
    (comp.arch.embedded)
  • Re: Is pyparsing really a recursive descent parser?
    ... There are an enormous variety of parsing tools, ... For instance, the Earley parser ... Okay, in some contexts, an ambiguous grammar may be considered ... over the other through the context of the parse results? ...
    (comp.lang.python)
  • Re: ANTLR Target for Ruby
    ... is to figure out where backtracking might be needed and do it efficiently ... a large overhead over using a hand-crafted parser. ... If you also provided a sweet metagrammar (I find your earlier Grammar ... The real work is in the "engine" that does parser ...
    (comp.lang.ruby)