Code Monkey home page Code Monkey logo

Comments (7)

tshoang avatar tshoang commented on September 27, 2024

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.

dd4g12 avatar dd4g12 commented on September 27, 2024

from xeventb.

tshoang avatar tshoang commented on September 27, 2024

@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.

dd4g12 avatar dd4g12 commented on September 27, 2024

@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.

tshoang avatar tshoang commented on September 27, 2024

@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.

dd4g12 avatar dd4g12 commented on September 27, 2024

@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.

tshoang avatar tshoang commented on September 27, 2024

The conversion is now done in the XMachine generator.

from xeventb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.