
Results
Some results will be displayed here.
Lisp Language
An example with a simple grammar designed to specify the Lisp language.
- Grammar Code
/** A grammar for Lisp Language written in ANTLR v4.
*/
grammar LispGIC;
lisp
: sExp
;
sExpList
: sExp sExpList
|
;
sExp
: NUM
| WRD
| '(' sExpList ')'
;
NUM : ('0'..'9')+
;
WRD : ('a'..'z')+
;
WS : (' ' | '\t' | '\n' | '\r' ) { channel=HIDDEN; };


Syntax Complexity Metrics

Parser Size Metrics

Style Metrics

Lexicographic Metrics
Clear Identifiers for Terminals and Non-terminals metric is shown.

Quality Report
Quality Evaluations generated automatically by GQE for this grammar.