Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Triquetrum/Xtext"

(Added instructions about how to try it out)
(Added details about where Tqcl.xtext is found.)
 
(2 intermediate revisions by one other user not shown)
Line 14: Line 14:
  
 
== How To Try out the Xtext interface ==
 
== How To Try out the Xtext interface ==
 +
''These notes are incomplete, but should be enough to get started''
 +
 +
The Xtext was never checked in to the main Triquetrum repo, instead it is found in  https://github.com/rtotaro/triquetrum
 +
 +
The  TriQuetrum Command Language (TqCL) is defined at https://github.com/rtotaro/triquetrum/blob/rtotaro/ft/190/TqclBackup/org.eclipse.triquetrum.commands.xtext/src/main/java/org/eclipse/triquetrum/commands/Tqcl.xtext
 +
 
#  [[Triquetrum/Building_From_Sources | Build Triquetrum from Sources]].
 
#  [[Triquetrum/Building_From_Sources | Build Triquetrum from Sources]].
#  Check out the branch with: <code>git checkout rtotaro/ft/190/TriQuetrumCommandLanguage</code>. There will probably be build errors which are fixed next.
+
## Instead of using the main Triquetrum repo, use https://github.com/rtotaro/triquetrum
 +
#  Check out the branch with: <code>git checkout rtotaro/ft/190/TriquetrumCommandLanguageToPush</code>. There will probably be build errors which are fixed next.
 
# In the org.eclipse.triquetrum.target.platform project, open the org.eclipse.triquetrum.commands.xtext.platform.target definition and click on "Set as Target Platform".  It may take a few minutes for the dependencies to download.
 
# In the org.eclipse.triquetrum.target.platform project, open the org.eclipse.triquetrum.commands.xtext.platform.target definition and click on "Set as Target Platform".  It may take a few minutes for the dependencies to download.
 +
# ''TBD'' continue with the steps necessary to try it out.
 +
 +
== Syntax ==
 +
* See [[Triquetrum/Tqcl | Tqcl ]] for a description of the syntax.
 +
 +
[[Category:Triquetrum]]

Latest revision as of 01:32, 22 May 2019

One idea is to use Xtext to describe models textually. See Triquetrum Command Language (github issue)

Below are various references:

  • Ptcl was a Tcl-based language for Ptolemy Classic. The ptcl manual might be of use to help define some of the Xtext commands. For example, both will need to connect ports from an outer composite to an inner composite.

How To Try out the Xtext interface

These notes are incomplete, but should be enough to get started

The Xtext was never checked in to the main Triquetrum repo, instead it is found in https://github.com/rtotaro/triquetrum

The TriQuetrum Command Language (TqCL) is defined at https://github.com/rtotaro/triquetrum/blob/rtotaro/ft/190/TqclBackup/org.eclipse.triquetrum.commands.xtext/src/main/java/org/eclipse/triquetrum/commands/Tqcl.xtext

  1. Build Triquetrum from Sources.
    1. Instead of using the main Triquetrum repo, use https://github.com/rtotaro/triquetrum
  2. Check out the branch with: git checkout rtotaro/ft/190/TriquetrumCommandLanguageToPush. There will probably be build errors which are fixed next.
  3. In the org.eclipse.triquetrum.target.platform project, open the org.eclipse.triquetrum.commands.xtext.platform.target definition and click on "Set as Target Platform". It may take a few minutes for the dependencies to download.
  4. TBD continue with the steps necessary to try it out.

Syntax

  • See Tqcl for a description of the syntax.

Back to the top