Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Releases: LFLCH/RobotDSL

Very first release for RobotScript

07 Jan 23:37
5df990e
Compare
Choose a tag to compare

First stable release of the RobotScript language tools.

Find the VSCode extension in the attachments.

Correct use of the visitor design pattern

04 Jan 18:19
e5dbb83
Compare
Choose a tag to compare

The parsing of a RobotScript file is now done using the visitor design pattern.
All the services (interpreter, compiler, prettier, ...) that need to parse the AST only have to implement the visitor interface, and use the accept method of a node when its value is unknown (for instance, an algebraic expression whose result we want to know in order to continue the analysis). You can have an example of implementation in this source code with the interpreter (src\interpretation\interpreterVisitor.ts)

See more about it in the associated pull request (#6)

if_over_accept

04 Jan 17:43
397703b
Compare
Choose a tag to compare
if_over_accept Pre-release
Pre-release

The source code of this version contains uses of if/else structures while visiting the ast, in order to check the type of some ast nodes.
It is not ideal, but it has the advantage to use the ast.ts file automatically generated from the grammar.