fork download
  1. grammar test;
  2.  
  3. options { k=1 }
  4.  
  5. digit : '0' | '1';
  6. number : digit digit* ;
  7.  
  8. expr : (simple | compound) EOF;
  9. simple : number;
  10. compound
  11. //: '()' | '(' expr expr* ('.' expr)? ')' ;
  12. : '(' expr* ')' | '(' expr expr* '.' expr ')';
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty