Open pluralia opened 2 years ago
We can generate "a type system template" automatically in the strict mode. So, we just infer types like in the "default" mode and put them in separate .langium
file. As the result:
@danieldietrich proposed to add that functionality to the CLI.
This will be considerably easier to implement with #438 and #440.
In Langium 0.2.0 types are inferred from rules names implicitly. For example, the following 2 examples will infer a type
MyRule
with the attributename
.When we add types, type inference like described above will still be allowed by default.
This feature issue proposes to add the strict mode, when implicit type inference is forbidden. So, the way to specify a type of
MyRule
in the strict mode is: