[antlr-interest] Off topic:Type handling

Andrew Deren andrew at adersoftware.com
Mon Oct 18 09:27:41 PDT 2004


Just a few comments:
Why are you doing type analysis in parser for dynamically typed language?
I've never done anything in asp (or VB), but I've worked on other
dynamically typed languages and it's almost impossible to do type-checking
(analysis) at parse (or compile) time. For those language all type
information is usually only available at runtime.
For example:
x = 3
if (somecondition)
{
	x = "some string";
}

// what type is x here?
z = x;

There is no way you can now type of x (or z after assignment), because it
depends on some runtime condition. This is only one of many problems.

Why are you doing type analysis for VB? Are you trying to compile it or
translate to typed language?

Andrew

-----Original Message-----
From: Anakreon [mailto:anakreonmejdi at yahoo.gr] 
Sent: Monday, October 18, 2004 10:28 AM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Off topic:Type handling


This is off topic but I'd appreciate your opinion on some thought I
have about type determination of loosely typed languages.
I apologize if I cause any frustration.

I have a problem with types in the translator I have developed for ASP.
Some ideas about how to solve this can be found
at:http://storm.cs.unipi.gr/%7Eanakreon/notes/type_notes.txt
I'd apriciate if you could take the time to read it and tell me your
opinion.
Since the subject is off topic, please use my mail only for responses.

Thanks in advanced, Anakreon.


 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list