Code example

40 views
Skip to first unread message

Tomas

unread,
Jun 19, 2013, 5:19:13 PM6/19/13
to modgr...@googlegroups.com
Hello,

nice parser. But after creating some parsing rules, i've have a problem.
For example my text looks like this:

a;
b {
   1;
    2;
  }

I need to count how many lines is inside of brackets { }. Could anyone provide simple code or at least small code snippet how to use Grammar.get_all(*tt_path)?

Thank You.
Reply all
Reply to author
Forward
0 new messages