Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compiler Tools JavaCC > Context depende...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 485 of 540
Post > Topic >>

Context dependent enabled identifiers (reserved keywords)

by Cesare Zecca <Cesare.Zecca.prof@[EMAIL PROTECTED] > Nov 5, 2007 at 04:44 PM

Gpl.jj defines a suitable token category

TOKEN :	// Identifier
{
  < IDENTIFIER: (<LETTER>|<UNDER_SCORE>) (<LETTER>|<DIGIT>|
<UNDER_SCORE>)* >
}

for identifiers.
Name() are identifiers being composed using a "name
separator" (currrently a '.' (dot) character)

void Name() :
{
}
{
	<IDENTIFIER> ( <NAME_PART_SEPARATOR> <IDENTIFIER> )*
} // end Gpl.Name()



There is an identifier ("id") that is reserved and can be used to make
identifiers and names only for actual arguments of group functions.
There is a limited set of group functions (their names are known).

In other words we have that the grammar is integrally extended to the
"id" identifier only in the specific context of calls to group
functions.
Or, equivalently, "id" is a reserved identifier that cannot be used
but in the calls of group functions.

Any hint about how to handle such an issue?
Thanks in advance


ciao
Cesare
 




 3 Posts in Topic:
Context dependent enabled identifiers (reserved keywords)
Cesare Zecca <Cesare.Z  2007-11-05 16:44:13 
Re: Context dependent enabled identifiers (reserved keywords)
Cesare Zecca <Cesare.Z  2007-11-12 17:32:15 
Re: Context dependent enabled identifiers (reserved keywords)
Cesare Zecca <Cesare.Z  2007-11-23 08:16:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 19:01:56 CDT 2008.