How to get started?

I'm just getting started with ProLint and have a pretty basic question. Hope this is the correct place to post. If not, please let me know where I can find some help.

Is there a list of nodetypes somewhere? (in _template.p - the last parameter to run searchnode is a list of nodetypes to search) I looked through the Proparse documentation and I'm not finding it there either.

Thanks,
Barbara


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jurjen's picture

re: How to get started

So you just got started with Prolint three weeks ago and already published a new rule (defaultframe) to the community... thanks, impressive!


jurjen's picture

re: How to get started

What I usually do is:
write a small sample of sourcecode that contains the statement I want to know more about, then view this sample of sourcecode in the Tokenlister.
It is trial and error, but I like this method because it doesn't only show me the exact name of the token, but also the correct parent-child relations of the tokens and also the pseudotokens that mark the AST.

The Tokenlister is one of the utilities in Proparse. You can find it if you run the Prolint desktop (run prolint/desktop.w) and then use button "Proparse launcher".

hth, Jurjen


Thanks. That's exactly what

Thanks. That's exactly what I did, after posting. Glad to know I'm not going down a wrong track :)
Barbara


john's picture

Proparse node types

Hi Barbara, there are a few places where you can find token types.

Be sure to see:
http://www.joanju.com/dist/docs/tree_spec.html
for how the tree specification, which has the node types in context. Also note in the comments at the top about a "_KW" suffix on some node types.

Here is a link to websvn for "ProParserTokenTypes.txt":
http://tinyurl.com/6kye3w

Here is a link to websvn for "NodeTypes.cpp":
http://tinyurl.com/5kuegn
...which lists the token types, the proper 4gl text, and the abbreviations.


Super. I'm sure this will

Super. I'm sure this will help. Thank you!
Barbara