Comments (7)
Dear Michael,
We adopt the syntax from Camille for event, i.e., any ... where ... then ... end. So there are no "begin" keyword any more. The advantage of that is one can comment out part of the event without changing keyword. (I have to check the documentation again as it was rewritten and it might have some "begin" left-over).
Another syntax different with Camille is that we required ":" after the guard. Also := will not be automatically translated, i.e., you need to convert that into Unicode symbol using content assist. During typing, content assist will be invoked automatically after special characters such as ":", however, it will not do it if a chunk of code is pasted. We did attempt to run the Rodin keyboard converter automatically, but we seem to disable it now. (@dd4g12: Do you remember why we did not do this any more?).
from xeventb.
from xeventb.
@dd4g12 I think it was the case that the underlying EMF is translated but the CamilleX editor was not refreshed isn't it?
from xeventb.
@tshoang I just fixed it I will send a pull request. It was done with the string conversion when we removed the double quotes of predicates, I was calling the Rodin keyboard at the same time, but when we removed the quotes this was removed as well.
from xeventb.
@leuschel The (might be easier) way to get the CamilleX file is to convert the Rodin Event-B files using context menu. However, comments will not be translated. If there are lots of comments, copy from Camille text editor to CamilleX and adapt the slight differences syntax will be less effort.
from xeventb.
@tshoang Oh I just remembered, that's true as well. CamilleX will not convert the symbols but they will only be converted in event-b.
from xeventb.
The conversion is now done in the XMachine generator.
from xeventb.
Related Issues (20)
- Attempted to beginRule error message HOT 4
- Exceptions when projects are closed HOT 1
- Saving does not seem to update Rodin representation HOT 2
- Updating the Xtext Community Website HOT 4
- BOOL cannot be use as field type in record HOT 2
- Cannot reference records in other components, e.g. in Seen Contexs HOT 2
- ctrl-Z (or cmd-Z) doesn't work for undo
- Show Errors/Warnings from Rodin components in CamilleX components
- Show warnings for untranslated formulae
- generate (all) Rodin components HOT 2
- Disappearing generated Rodin files HOT 2
- Batch generation for a collection of CamilleX source files
- Markers attach to an XMachine or an XContext
- SymbolTable does not work with CamilleX editors HOT 1
- Versioning of models
- Convert to CamilleX should not ignore features of generated elements HOT 1
- Event group only supports 1 event
- Rodin keyboard converter bug HOT 1
- CodeQL fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xeventb.