You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 attribute name.
MyRule:
name=ID;
MyRule returns MyRule:
name=ID;
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:
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:
The strict mode works out of box
A user develops the type system by adding and modifying types instead of creating everything from zero
@danieldietrich proposed to add that functionality to the CLI.
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:The text was updated successfully, but these errors were encountered: