Page 1
A Web-Based Grammar Development Environment for GF
Thomas Hallgren
Zurich, March 2011
Page 2
GF Grammar Development Environments
Traditional
- Generic text editor
- GF documentation
- GF command shell
Page 3
GF Grammar Development Environments
→ Traditional
Generic text editor
- Little, if any, GF support
- Maybe syntax high-lighting
Page 4
GF Grammar Development Environments
→ Traditional
GF documentation
Page 5
GF Grammar Development Environments
→ Traditional
GF command shell
- Grammar compilation
- Error detection
- Testing
- Visualization
Page 6
New GF Grammar Development Environments
- 1) GF Plugin for Eclipse
- 2) Web-based IDE
- Minimal effort to get started
- Guidance for novice users
Page 7
GF Web IDE
- Prototype
- Subset of GF
- Quick access, no software to download and install
- Implemented in HTML5 + JavaScript
Page 8
GF Web IDE
Portability, works on multiple plaforms
- Linux, Mac, Windows
- Touch-based Android and iOS devices
- User guidance
- Error avoidance
- Agreement between abstract and concrete syntax
- Some error detection integrated in editor
Page 9
GF Web IDE
→ Portability, works on multiple plaforms
Integrated testing and visualization
- Fast edit-compile-test cycle
- Web apps for testing
Page 10
Demo
http://cloud.grammaticalframework.org
Page 11
Future work
- Cloud-based grammar storage and sharing
- Export and import grammars
- More efficient editing
- Keyboard access to all editing operations
- Use GF compiler API to add more functionality
- More guidance and intergrated documentaiton
- ...
Page 12
The End
Questions?