Skip to content
forked from LeKaitoW/raox

RDO modelling language written in Xtext

Notifications You must be signed in to change notification settings

asquad/rdo-xtext

 
 

Repository files navigation

RAO-XT

Summary

This project is an implementation of RDO modelling language in Eclipse, using xtext.

Preparing

sudo apt-get install openjdk-8-jdk # for debian-based distributions
cd ~/Downloads
gunzip -c eclipse-dsl-luna-SR2-linux-gtk-x86_64.tar.gz  | tar xvf -
cd eclipse
./eclipse
  • Git clone rdo-xtext repository
ssh-add ~/.ssh/github.openssh.private.key
git clone git@github.com:aurusov/rdo-xtext.git

Installing

Setting up the workspace for Eclipse

  • File > Import > General > Existing Projects into Workspace``> Select root directory > /home/USERNAME/git/rdo-xtext > Finish
  • Wait for the workspace to build and get tons of errors
  • ru.bmstu.rk9.rao/src/ru.bmstu.rk9.rao/Rao.xtext > Run As > Generate Xtext Artifacts > Proceed
  • *ATTENTION* It is recommended to use the ANTLR 3... press y
0    [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering platform uri '/home/drobus/git/rdo-xtext'
637  [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Adding generated EPackage 'org.eclipse.xtext.common.types.TypesPackage'
644  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/src-gen
652  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/model
652  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao.ui/src-gen
653  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao.tests/src-gen
5720 [main] INFO  clipse.emf.mwe.utils.GenModelHelper  - Registered GenModel 'http://www.bmstu.ru/rk9/rao/Rao' from 'platform:/resource/ru.bmstu.rk9.rao/model/generated/Rao.genmodel'
27489 [main] INFO  text.generator.junit.Junit4Fragment  - generating Junit4 Test support classes
27496 [main] INFO  text.generator.junit.Junit4Fragment  - generating Compare Framework infrastructure
27550 [main] INFO  .emf.mwe2.runtime.workflow.Workflow  - Done.

[!] If your output differs from the one above by a lot of errors mentioning RULE_ANY_OTHER, you should run the generation process again and again until the bulid is succesfull. This is Xtext/Antlr bug caused by complex rules supporting unicode identifiers in grammar, sorry for the inconvenience

  • Run > Run Configurations... > Eclipse Application > New > Name =
  • runtime-EclipseXtext
    > Location =
  • ${workspace_loc}/../runtime-EclipseXtext
    > Run
  • Ignore this if you use Java version 8 or later. Eclipse Platform may freeze during its launch. This happens due to the unsufficient permgen size available to Eclipse. To prevent that, add -XX:MaxPermSize=256M to VM arguments in Run Configuration.
  • And that's it.

Running

  • Window > Open Perspective > Other... > Rao
  • File > New > Project... > Rao > Rao Project > Next> > Project name: >
  • set project name
  • choose model template
  • Finish
  • Models examples

About

RDO modelling language written in Xtext

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 77.5%
  • Xtend 22.5%