[antlr-interest] Semantical problem with Antlr

Mark Bednarczyk voytechs at yahoo.com
Tue Jun 7 07:18:54 PDT 2005


I'm working on exactly same feature. I already have a pretty
good typecasting mechanism working, but its using a hand-coded
lexer and parser. I'm converting it to ANTLR now.

Here is a link to my examples:
http://netrepository.org/jnetstream/releases/0.3.0/index.htm#typ
ecasting_example

And here is a link of how it actually works:
http://jnetstream.sourceforge.net/docs/Typecasting_Mechanism_fil
es/v3_document.htm

Hope it helps.

Cheers,
mark....

>-----Original Message-----
>From: antlr-interest-bounces at antlr.org
>[mailto:antlr-interest-bounces at antlr.org]On Behalf Of
>Serafettin Senturk
>Sent: Tuesday, June 07, 2005 8:32 AM
>To: antlr-interest at antlr.org
>Subject: [antlr-interest] Semantical problem with Antlr
>
>
>
> Hello,
>
> I am trying to convert from typeless language to a
>typeful language like
>the following:
>
> from  (a = 3+5;)  to  ==>   (int a = 3+5;)
>
> I know we can get the result of such an expression.
>But is it possible with
>Antlr to evaluate the result semantically and
>according to the result put
>the appropriate data type for declaration? Does
>anybody have an idea about
>this semantical problem of Antlr?
>
> Best Regards,
> Serafettin
>
>
>
>
>




More information about the antlr-interest mailing list