expression parsing

38 views
Skip to first unread message

Bing Ran

unread,
Jan 29, 2011, 10:32:05 PM1/29/11
to JavaParser
Thanks so much for the project which has made my life a lot easier!

Quick questions: given a string such as "a + b c", what is the most
efficient way to find out the longest sub-string, from the start, that
is a valid expression, in this case "a + b"?

It seems to me the parser can only parse a full class definition
instead finer constructs.

Thanks

Bing
Reply all
Reply to author
Forward
0 new messages