Skip to content

Instantly share code, notes, and snippets.

View ainslec's full-sized avatar

Chris Ainsley ainslec

  • Tokyo
View GitHub Profile
@ainslec
ainslec / Sample JavaCC GWT Module
Created April 15, 2014 16:10
Sample JavaCC GWT Module
<module>
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.google.gwt.i18n.I18N"/>
<source path="parse"/>
</module>
@ainslec
ainslec / JavaCC_GWT_Example
Created April 15, 2014 00:04
Sample GWT compatible JavaCC parser definition file
options {
static = false;
IGNORE_CASE = false;
JAVA_UNICODE_ESCAPE = true;
JDK_VERSION = "1.5";
// Not yet detected as a valid option by the Eclipse plugin, but works nonetheless. This is essential for GWT compatible generated code.
JAVA_TEMPLATE_TYPE = "modern";
}
PARSER_BEGIN(Parser)