Created
June 16, 2017 09:03
-
-
Save prepor/064050731dceeb8b8566912cd6133bf6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| --- a/src/main/antlr/Orc.g4 | |
| +++ b/src/main/antlr/Orc.g4 | |
| @@ -31,8 +31,8 @@ | |
| */ | |
| grammar Orc; // 2.1.0 | |
| -@header { | |
| -package com.d360.xorc.antlr; | |
| +@head { | |
| +package orc.compile.antlr; | |
| } | |
| @@ -130,12 +130,8 @@ declaration | |
| | declare_type '#'? | |
| ; | |
| -declaration_expression : declaration declaration_expression?; | |
| -declarations : declaration_expression EOF; | |
| - | |
| declare_val : 'val' pattern '=' expression ; | |
| -declare_definition : declare_definition_instance+; | |
| -declare_definition_instance : 'def' ID=function_name type_parameters? '(' parameters? ')' return_type? guard? '=' expression ; | |
| +declare_definition : 'def' ID=function_name type_parameters? '(' parameters? ')' return_type? guard? '=' expression ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment