sample SemanticJScriptParser and extraction script functions

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by GavinK151

I have been using the SemanticJScriptParser from the sample c# project for outlining javascript code (works great) However I was interested in being able to turn a script into a collection (arrayList of strings)of functions and have been working with some RegEx to achieve this.

Time is quite tight so I have only done a little investgation but it seems to me the SemanticJScriptParser class might be a better foundation for this than fiddling with RegEx - anyone knnow if its worth investigating?

cheers again :-)

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Yes semantic parsers are where you should be assigning "meaning" to the Tokens that were parsed by our lexical parser. Each Token has a SemanticParseData that you can use to set to any object that helps you identify what that Token means. You can do that sort of thing in SemanticParser.PostParse.

Actipro Software Support

The latest build of this product (v24.1.0) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.