Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created October 30, 2009 16:34
Show Gist options
  • Save abuiles/222497 to your computer and use it in GitHub Desktop.
Save abuiles/222497 to your computer and use it in GitHub Desktop.
Con este ejemplo
stereotype Property extens uml::Property
El identifier que es Property, lo reconoce como el token STEREOTYPE y no como IDENTIFIER :(.
Hay una opcion para evitar eso ?
stereotype : STEREOTYPE IDENTIFIER EXTENDS UML COLON COLON stereotype_super;
stereotype_super : SCLASS | PPROPERTY;
En tokens tengo
PPROPERTY : 'Property'
IDENTIFIER : ( ANY_LETTER ) (ANY_LETTER |UNDERSCORE |DIGIT )* ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment