[antlr-interest] debug test
refka fouzai
rebeka_fz at yahoo.fr
Sat Nov 27 15:26:55 PST 2010
Hi,
im trying to debug this grammar which is correct while checking but im getting
in the output box:"line1:51 not viable alternative at character ' ':
grammar marte;
riState :stdianame '.' 'addOpaqueBehavior''(' ELEMNAME ')' //ajout d'un
Opaque Behavior au State Machine
|stdianame '::' ELEMNAME '.' 'stereotyped''(' ster ')'
;
ster :'TimedProcessing'ster_attr
|'TimedDomain'
|'clockType'
;
ster_attr:ACCOO
DURATION'='INT(','START'='ELEMNAME)?(','FINISH'='ELEMNAME)?(','ON'='ELEMNAME)?
ACCOC
;
stdianame: 'ST_'ELEMNAME
;
ACCOO : '{';
ACCOC : '}';
DURATION: 'duration';
START : 'start';
FINISH : 'finish';
ON : 'on' ;
ELEMNAME : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
;
INT : '0'..'9'+
;
Rebeka
Cordialement,
Refka Fouzai
More information about the antlr-interest
mailing list