Xtext is an actively used grammar language created in 2006. Xtext is an open-source software framework for developing programming languages and domain-specific languages (DSLs). Unlike standard parser generators, Xtext generates not only a parser, but also a class model for the abstract syntax tree, as well as providing a fully featured, customizable Eclipse-based IDE.Xtext is being developed in the Eclipse Project as part of the Eclipse Modeling Framework Project and is licensed under the Eclipse Public License.. Read more on Wikipedia...

13Years Old 30Users 0Jobs

Example code from the web:

grammar org.eclipse.xtext.common.Terminals 
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
terminal ID: 
terminal INT returns ecore::EInt: 
terminal STRING: 
    '"' ( '\\'('b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\') | !('\\'|'"') )* '"' |
    "'" ( '\\'('b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\') | !('\\'|"'") )* "'";
terminal ML_COMMENT: 
    '/*' -> '*/';
terminal SL_COMMENT: 
    '//' !('\n'|'\r')* ('\r'? '\n')?;
terminal WS: 
    (' '|'\t'|'\r'|'\n')+;
terminal ANY_OTHER: 

Last updated October 14th, 2019