Hi,


I've run into a problem that despite my best attempts over the last couple
of days, i can't solve myself. I have an action script grammar(AS3.g) taken
from the metaas project and a compilation unit (an .as file) I only need to
process the fields and the methods.My problem is that I can not rely very
much on the parsing of elements in a methodDeclaration code block so I
decided to cut the code block. My scope is that i could have a :
function myFunction():int {
  write everything here blah blah !...@#%$^....
  {
     write more stuff here
     here goes other recursive code blocks
  }
  etc...
}
and parse it correctly.

I have followed the examples of multiple-line comments but no success. I
tried to make a lexer that accepts every char words but gives my error when
parsing that on the start of the file it recognize a EVERCHARWORD instead of
specific token needed(PACKAGE for my case),which if i think of that is very
normal ,and all sort of ideas,putting recursive rules and recursive lexers
but did not help me.

I wonder what would be the best aproach to do this and I am asking kindly
for your guidance or at least some hints with how and with what to start.

Thank you in advance,
Sorin
-- 
View this message in context: 
http://n2.nabble.com/Modifing-a-grammar-to-skip-the-block-of-a-function-tp3275782p3275782.html
Sent from the ANTLR mailing list archive at Nabble.com.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to