4.3. Trying out the GFEP prototype
Installation
- Eclipse is of course required. The plugin was developed using Eclipse 3.7 but older versions should also work.
- Inside Eclipse, go to Help > Install New Software.
- Add new software site using the URL: http://www.grammaticalframework.org/eclipse/beta/.
- Select the GF Eclipse Plugin, click Next, accept the license agreement and install. If it takes a long time to calculate dependencies, just be patient. I'm not yet sure if this is an abnormal issue or not.
- Accept the prompt warning that the software is unsigned.
- Restart Eclipse when prompted.
- (Optional) Add the GF perspective clicking Open Perspective > Other.
- (Optional) Go to Run > Run Configurations and add a new Grammatical Framework configuration. Fill in the necessary fields in the Main tab, and click Apply to save the new configuration.
Getting started
- Create a new blank General project in the usual way. If asked whether you want to add the Xtext nature to your project, you can safely say no.
- There is a wizard for adding a new GF source file from File > New > Other > GF Source File:
- You can find a small example at http://www.grammaticalframework.org/eclipse/examples/hello/. Download the files and manually add them to your Eclipse workspace.
- Note how changing a
cat
definition for example will produce warnings and/or errors in other the modules. - Compile your source using the provided Run Configuration.
Known issues
- Local parameter/binding identifiers show up as unresolved, e.g.
recip
in:Hello recip = {s = "hello" ++ recip.s ! Masc} ;
- Qualified names currently aren't treated correctly, so
Masc
works butResEng.Masc
does not. - If the Apply button in the Run Configurations dialog doesn't remains disabled, swap to the Common tab and back.
- Selective inheritance has not been properly tested.
- Interfaces/functors are currently not supported.
- The in-editor validation often needs to be triggered by some keystrokes, especially when Eclipse laods with some already-opened files.
- Printer-friendly version
- Login to post comments
- Slides
What links here
No backlinks found.