Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Arithmetic defined in xtext
Arithmetic defined in xtext [message #1860248] Mon, 24 July 2023 21:22 Go to next message
Thomas Chiang is currently offline Thomas ChiangFriend
Messages: 106
Registered: March 2020
Senior Member
Hello,

This is mostly because I don't want to have to do it myself but is there an already defined library or something that can be imported to an xtext grammar that already has basic math defined? I mean just addition, subtraction, multiplication, and division.
Re: Arithmetic defined in xtext [message #1860250 is a reply to message #1860248] Tue, 25 July 2023 03:52 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14725
Registered: July 2009
Senior Member
you can simply copy&paste the snippet from the docs.
https://eclipse.dev/Xtext/documentation/307_special_languages.html#expressions


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Previous Topic:Accessing Enum from imported ECore model
Next Topic:Description for the Content Assist of File Cross-References
Goto Forum:
  


Current Time: Tue Oct 15 04:19:02 GMT 2024

Powered by FUDForum. Page generated in 0.05203 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top