Created
June 1, 2010 10:36
-
-
Save jawher/420799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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