Resolve "Make grammar(s) more concise"
Compare changes
Some changes are not shown
For a faster browsing experience, some files are collapsed by default.
+ 11
− 19
To add a new communication protocol, the following locations have to be changed (replace `ABC` and `abc` with the name of the protocol):
- If further methods are needed for handler initialization, add a new template `abc.mustache` containing those procedures. Add `{{#usesABC}}{{> abc}}{{/usesABC}}` at the top of `ragconnect.mustache` to use this template
- In `receiveDefinition.mustache` and `sendDefinition.mustache`: add a new case in the switch statement defining the logic to happen for both definitions. If the new protocol is close to a PUSH semantic, follow `mqtt`. If it is closer to PULL semantic, follow `rest`.
- Add a newly constructed handler within the definition of `RagConnect.toMustache` with the needed fields (class name, construction snippet, handler attribute, handler field, the boolean flag you just added to Configuration)
- Add code to add the handler to the list `handlers` if the choice is given, i.e., if `ASTNode.usesABC`
@@ -58,7 +50,7 @@ All tests are required to run both locally, and within the CI.
@@ -58,7 +50,7 @@ All tests are required to run both locally, and within the CI.
Use the [PreprocessorPlugin][preprocessor-plugin], the build process can be written concisely in three parts per task: