How can I remove primitives from baseLanguage?
I don't want to use some primitive types from java.
Can I change name of 'boolean'?
And why does baseLanguage include java?
Expressions and statements can be 'base', but jvm primitives should be 'jvmBase'
Can I change name of 'boolean'?
And why does baseLanguage include java?
Expressions and statements can be 'base', but jvm primitives should be 'jvmBase'
Please sign in to leave a comment.
2. You could define an alternative editor for "boolean", if that would help in your case. Or define a type of your own.
3. BaseLanguage has been created as a clone of Java, so it contains all the concepts that Java has. It has never been meant as a universal expression language, even though such a language would certainly be very useful for DSL authors.
But how can I achieve 2? I have no idea how can I set mps to treat 'true' and 'false' as 'bool' instead of 'boolean'
A more elaborate solution would include creating your own type and defining sub-typing rules between your type and BooleanType.
But I have no idea how to solve 'type boolean is not a subtype of string'.
And I can't find any guide for this from MPSD32 – Single page version.
Now I find that I can't use light quotation in typesystem - typeof.
Is this a known issue?
As for light quotations - have you imported the jetbrains.mps.lang.quotation language into the type system model? Can you use ordinary quotations in the typesystem?
Maybe checking the quotation page (https://confluence.jetbrains.com/display/MPSD32/Quotations) could help shed some light into the problem?
Vaclav
And now I use 'new node<BoolType>()'.