-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exportOn: gives an MSE file with ref: String
instead of a ref: <integer>
#19
Comments
I've worked around this by adding a third reference type at profcfuhrmanets/mse-tools@7a4bbc4#diff-396fec23ee78598e7f93579e822b7c0b4c5ab540d5a8916da6f26d6e3851ff0cR13 I was using the EBNF I found in https://www.researchgate.net/publication/265428652_MSE_and_FAMIX_30_an_Interexchange_Format_and_Source_Code_Model_Family Is there a newer version of the MSE Grammar specified like this (easy to use with PEG tools in Javascript)? |
Hello, No, I think you find the fix.
Those types are used for the Fame Properties (not a relation between two models entities) defineProperties
myEntity property: #propertyName type: #String |
(Still, we should document this better in format description, and in the metamodel generation) |
Also, Note that this kind of problem only happens when you want to generate the mse of a metamodel. 'FamixTypeScriptMetamodel.mse' asFileReference writeStreamDo: [ :writeStream | FamixTSModel metamodel exportOn: writeStream ] When generating the mse of a model, those types are used to determine how to export the value of the properties |
Thanks for the info. I will update my MSE parser. |
hummmm
|
The metamodel knows only those 4. Number can be a fraction in the model and String can be a symbol in the model. |
I'm experimenting with generating metamodels using FamixNG. I generated an MSE from it using
'FamixTypeScriptMetamodel.mse' asFileReference writeStreamDo: [ :writeStream | FamixTSModel metamodel exportOn: writeStream ]
, and got some results that don't look like they respect the grammar (see the(type: (ref: String)))
line below). Because of this, my parser can't read it. Is this a bug? Maybe my metamodel is missing some entities (I can't find anything with(name 'String')
)?I'm attaching the entire MSE file of the Metamodel for more info (there are other cases where
ref:
is Number, etc.FamixTypeScriptMetamodel.mse.txt
The text was updated successfully, but these errors were encountered: