Rao modelling language written in Xbase
Clone or download
aurusov Merge pull request #595 from smirnov-vs/feature/trace_hscroll
Горизонтальный скролл в трассировке
Latest commit 34f5e57 Dec 25, 2017

README.md

Build Status

Rao X

Summary

This project is an implementation of RAO modelling language in Eclipse, using Xbase.

Preparing

  • Install Ubuntu Desktop or any other linux distribution

  • Install Java 8

    IMPORTANT Latest version of openjdk at the moment of writing this (openjdk-8-jdk 8u66) crushes when usingSWT_AWT bridge. Oracle jdk distributions should be used instead. For debian-based linux distributions:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Check java version:

java -version

If output is different than (except version numbers):

java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

set it manually

sudo update-alternatives --config java
cd ~/Downloads
gunzip -c eclipse-dsl-neon-R-linux-gtk-x86_64.tar.gz  | tar xvf -
cd eclipse
./eclipse
  • Git clone raox repository
ssh-add ~/.ssh/github.openssh.private.key
git clone git@github.com:aurusov/raox.git

Installing

Setting up the workspace for Eclipse

  • File > Import > General > Existing Projects into Workspace``> Select root directory > /home/USERNAME/git/raox > 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/raox'
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/raox/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/src-gen
652  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning /home/drobus/git/raox/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/model
652  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning /home/drobus/git/raox/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao.ui/src-gen
653  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning /home/drobus/git/raox/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 =
  • raox
  • Run

Running

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