Arnica WebScript uses its own lexer to parse programming code and generate code graph. The code graph is not stored, but instead is generated in realtime based on the most recent saved source code.
Code graph shows start, finish and all intermediate return points which could happen during code execution.
The following code blocks are analyzed by the lexer:
- IF/ELSE/END IF
- DO WHILE
- FOR LOOP
In order to keep focus on a high level code flow logic, lexer excludes detailed presentation for each command or function call.
Calls to nano services are however presented in the position where they are invoked.
To annotate code logic, special comments blocks are also included in the generated code graph.
Below is an example of the Arnica script code graph: