Forums

Compiler representation of System.Console.writeLine()

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Compiler representation of System.Console.writeLine()

Postby RIGHT_THEN » Sat Mar 05, 2011 2:05 am

Charles,

System.Console.writeLine( "Hello Again") ;

if i write System alone it becomes identifierExpr
and Console is always a type Expression

but what is it combined what class do i need to get hold of in visitation
to get this.

ThankingYou
RIGHT_THEN
RIGHT_THEN
 
Posts: 99

Re: Compiler representation of System.Console.writeLine()

Postby hopscc » Sat Mar 05, 2011 6:13 am

DotExpr
de.left ('System') starts as an IdentifierExpr and gets recognised and typed to a Namespace
de.right ('Console') starts as MemberExpr ( in System) and typed to a Class/Type (Console)
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand

Re: Compiler representation of System.Console.writeLine()

Postby RIGHT_THEN » Sat Mar 05, 2011 8:15 am

Thanks Mr. hopscc

when i posted this your posts were 360
and mine were 36.
0 taking the credit i would say. :)


Thanking_You
RIGHT_THEN
RIGHT_THEN
 
Posts: 99


Return to Discussion

Who is online

Users browsing this forum: No registered users and 65 guests