Skip to content

UnicoenProject/UniMapperGeneratorForTS

Repository files navigation

UniMapperGeneratorForTS

Requirements

How to Develop

1. Install Xtext & Xtend to Eclipse

  • Visit download page in Xtext web site
  • Follow the [Installation Instructions]
    1. right click [Release] button & copy the link
    2. Open Eclipse
    3. Choose "help" -> "install new software" in the menu
    4. Insert the copied URL
    5. Check the check boxes of Xtext and Xtend and press install button
    6. Restart eclipse & wait for workspace building

2. Import UniMapperGenerator

  1. Change workspace text file encoding to UTF-8 from MS932 (Eclipse Default)
    • "Window" -> "Preferences" -> "General" -> "Workspace" -> "Text file encoding"
  2. Clone UniMapperGeneratorForTS.
  3. Choose "File" -> "Import" in the menu
  4. Choose "General" -> "Existing Projects into Workspace" in the window
  5. Import 5 projects that starts with "net.unicoen"
    • net.unicoen
    • net.unicoen.ide
    • net.unicoen.tests
    • net.unicoen.ui
    • net.unicoen.ui.tests
  6. Right click the net.unicoen/src/net.unicoen/GeneratorUniMapperGenerator.mwe2 in Package Explorer
  7. Select and exetute "Run as" -> "MWE2 Workflow" (※)

(※) Even if there are many errors in the projects after the projects import, it is OK to run. When the execution of (6) is completed, necessary files are generated and all errors disappear.

If some errors remain, please check whether you have forgotten (0) to change file encoding.

3. Execute UniMapperGenerator

  1. Select net.unicoen and "Run as" -> "Eclipse Application (Launch Runtime Eclipse)"
  2. Import "UniMapperGenerator" in the root directory
  3. Edit the (language).ug4 files in src/
  4. Then, (language).g4, (language)Parser.ts, (language)Lexer.ts, (language)Visitor.ts, and (language)Mapper.ts are generated!
    • It may take some time to install the library only for the first time.
    • If "Building workspace" progress stops at 45% or generates a invalid g4 file, Please check the setting of 2-1 character code.
    • If you installed node.js for the first time, the environment path may not be reflected yet. Please try to reboot your PC.

Related Works

How to Learn

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published