Minres / CoreDSL

Xtext project to parse CoreDSL files
Apache License 2.0
14 stars 2 forks source link

Milestone 2.0 #91

Closed AtomCrafty closed 1 year ago

AtomCrafty commented 1 year ago

Regarding #80: I've changed the grammar for the assembly field to allow either a single string token or two string tokens enclosed in {} and separated by a comma. @eyck your comment said to allow a list of strings, but I don't see why we would ever need more than two.

Regarding #56: The new __encoding_size() intrinsic works. I changed the grammar slightly to allow omitting the parentheses for parameterless intrinsics, so you can also just write __encoding_size. In the backend, the value can be retrieved via AnalysisContext.getEncodingSize(Encoding)

jopperm commented 1 year ago

either a single string token or two string tokens enclosed in {} and separated by a comma

Sounds reasonable to me.