Need help with writing Analyzers #4531
Replies: 2 comments
-
Firstly, kudos for working on that. There is no clear cut answer. You will have to dive into JFlex and lexical analysis if you are not familiar with them, I am afraid. One of the initial steps would be to search for the language specification and identify the keywords, how comments are done (some part of the lexical analysis is to skip over comments), etc. The lexical analysis is done in order to generate xrefs. Also, it depends whether there is pre-existing support for the language parsing in Universal ctags. If yes, then happy dance; if not, then the definitions have to be extracted using regexps passed as ctags CLI arguments. Inspiration from past PRs is good, though:
|
Beta Was this translation helpful? Give feedback.
-
Ctags has language support for COBOL according to https://ctags.sourceforge.net/languages.html |
Beta Was this translation helpful? Give feedback.
-
All,
I am working on an OpenGrok issue 4384 to add COBOL Analyzer to OpenGrok. I have not worked with JFlex before. Can anyone guide on how to add an Analyzer to OpenGrok. I am taking YAML (#4409) as reference but I dont know how to create .lex files.
Beta Was this translation helpful? Give feedback.
All reactions