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
Eclipse UserFriend
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
Eclipse UserFriend
you can simply copy&paste the snippet from the docs.
https://eclipse.dev/Xtext/documentation/307_special_languages.html#expressions
Previous Topic:Accessing Enum from imported ECore model
Next Topic:Description for the Content Assist of File Cross-References
Goto Forum:
  


Current Time: Thu Feb 13 10:54:19 GMT 2025

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

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

Back to the top