[antlr-interest] How to implement one script parser?
Miguel Ping
mblp at mega.ist.utl.pt
Mon Mar 5 02:38:07 PST 2007
What do you mean with spec.2? I think any parser written with ANTLR
needs ANTLR runtime libs to run... You should be able to wrap it up
all in a single package, including antlr libs, but I think you will
always need antlr runtime... Putting it another way, the generated
parser that antlr makes uses some antlr runtime stuff to work
properly. At least I think that's how it works in the Java version,
but it should be the same in any other language...
On 3/5/07, Hongjun Chen <r66092 at freescale.com> wrote:
>
>
> Hi all,
>
> I am new to ANTLR, and I intend to develop one script parser in
> ANTLR, but I wonder whether ANTLR can meet my need. The spec. of script
> parser is listed below, could anyone shed light on these problems? I really
> appreciate your help.
>
>
> Spec.1 Script parser should be written in C-language;
>
> Spec.2 Script parser can execute without any help of ANTLR;
>
> Spec.3 The grammar of script is similar to C or python;
>
> Spec.4 The size of script parser should not exceed 100KByte.
>
>
> Could anyone provide one example/steps on constructing a script parser? If
> so, it must be very helpful. Thanks in advance!
>
>
> Best Regards,
>
> ________________________________
>
> Hongjun Chen
> 2007-03-05
More information about the antlr-interest
mailing list