dcsimg
warning:nondeterminism between alts 1 and 2 of block upon
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   deepak_dhananjaya
Posted On:   Monday, March 14, 2005 10:55 PM

I HAVE A PROBLEM REGARDING FORMING RULES the below code is to recognize a C- function declaration i am getting the above warning. please ne 1 help me out. or if u could send me the url of a good site where ican get ANTLR grammar for recognizing C- function declaration i would be very much thank full. startRule : ( n:NAME LPARAN args RPARAN {System.out.println("("+ n.getText()+ ")");} ) ; args : ( DATATYPE NAME COMA args | DATATYPE NAME ) ; class L extends Lexer; // match an upper/lower case name of any length LPARAN: '(' ;    More>>

I HAVE A PROBLEM REGARDING FORMING RULES
the below code is to recognize a C- function declaration
i am getting the above warning.
please ne 1 help me out.
or if u could send me the url of a good site where ican get ANTLR grammar for recognizing C- function declaration i would be very much thank full.

			

startRule : ( n:NAME LPARAN args RPARAN
{System.out.println("("+ n.getText()+ ")");}
)
;
args : ( DATATYPE NAME COMA args
| DATATYPE NAME
)

;




class L extends Lexer;
// match an upper/lower case name of any length
LPARAN: '('
;

RPARAN: ')'
;


NAME: ( 'A'..'Z')+
;

DATATYPE: ("int")
;
COMA: ( ',' )
;

// whitespace
WS : ( ' '
| ' '


....


;

11,2-16 Top    <<Less

Re: warning:nondeterminism between alts 1 and 2 of block upon

Posted By:   deepak_dhananjaya  
Posted On:   Monday, March 14, 2005 10:56 PM

i am asorry
About | Sitemap | Contact