Skip to content

Instantly share code, notes, and snippets.

@jawher
Created June 1, 2010 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jawher/420799 to your computer and use it in GitHub Desktop.
Save jawher/420799 to your computer and use it in GitHub Desktop.
grammar Jdk7Lambdas;
lambda_type
: SHARP return_type LPAREN (arg_list) RPAREN;
arg_list: | arg_type (COMMA arg_type)*;
arg_type: TYPE;
return_type
: TYPE;
TYPE : ID;
COMMA : ',';
SHARP : '#';
LPAREN : '(';
RPAREN : ')';
ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
;
WS : ( ' '
| '\t'
| '\r'
| '\n'
) {$channel=HIDDEN;}
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment