{"commit":"07ab552eb3a92d88c26b178dd58f45c06a497826","old_file":"src\/main\/antlr\/WorkflowCatalogQueryLanguage.g4","new_file":"src\/main\/antlr\/WorkflowCatalogQueryLanguage.g4","old_contents":"grammar WorkflowCatalogQueryLanguage;\n\n@header {\n package org.ow2.proactive.workflow_catalog.rest.query;\n}\n\nclause: ATTRIBUTE OPERATOR VALUE ;\nclauses: clause ( CONJUNCTION clause )* ;\nstatement: '(' clauses ')' | clauses ;\n\nATTRIBUTE: ([a-z] | [A-Z])+ ([_.]+ ([a-z] | [A-Z] | [0-9])*)* ;\nCONJUNCTION: 'AND' | 'OR' ;\nOPERATOR: '!=' | '=' ;\nVALUE: '\"' (~[\\t\\n])* '\"' ;\n\nWHITESPACE: [ \\t\\r\\n]+ -> skip ; \/\/ skip spaces, tabs, newlines\n","new_contents":"grammar WorkflowCatalogQueryLanguage;\n\n@header {\n package org.ow2.proactive.workflow_catalog.rest.query;\n}\n\n\/\/ PARSER\n\nexpression\n : and_expression\n ;\n\nand_expression\n : or_expression (AND or_expression)*\n ;\n\nor_expression\n : clause (OR clause)*\n ;\n\nclause\n : (AttributeLiteral COMPARE_OPERATOR StringLiteral)\n | LPAREN and_expression RPAREN\n ;\n\n\/\/ LEXER\n\nAND : 'AND' | '&&' ;\nOR : 'OR' | '||' ;\nCOMPARE_OPERATOR : '!=' | '=' ;\nLPAREN : '(' ;\nRPAREN : ')' ;\n\nStringLiteral\n : '\"' (~[\"\\\\\\r\\n] | '\\\\' (. | EOF))* '\"'\n ;\n\nAttributeLiteral\n : LETTER (LETTER | DIGIT | '_' | '.')*\n ;\n\nWS\n : [ \\t\\r\\n]+ -> skip\n ;\n\nfragment DIGIT: [0-9];\nfragment LETTER: LOWERCASE | UPPERCASE;\nfragment LOWERCASE: [a-z];\nfragment UPPERCASE: [A-Z];\n","subject":"Update grammar for our Workflow Catalog Query Language (WCQL)","message":"Update grammar for our Workflow Catalog Query Language (WCQL)\n","lang":"ANTLR","license":"agpl-3.0","repos":"ow2-proactive\/catalog,laurianed\/catalog,laurianed\/catalog,gparanthoen\/workflow-catalog,yinan-liu\/workflow-catalog,lpellegr\/workflow-catalog,ShatalovYaroslav\/catalog,ow2-proactive\/catalog,laurianed\/workflow-catalog,ow2-proactive\/workflow-catalog,laurianed\/catalog,ow2-proactive\/catalog,paraita\/workflow-catalog,ShatalovYaroslav\/catalog,ShatalovYaroslav\/catalog"} {"commit":"7815a5a8ef4360f64bc790e73dd4aa3360ddb261","old_file":"robozonky-strategy-natural\/src\/main\/antlr4\/imports\/InvestmentSize.g4","new_file":"robozonky-strategy-natural\/src\/main\/antlr4\/imports\/InvestmentSize.g4","old_contents":"grammar InvestmentSize;\n\nimport Tokens;\n\n@header {\n import com.github.robozonky.strategy.natural.*;\n}\n\ninvestmentSizeExpression returns [Collection result]:\n { Collection result = new LinkedHashSet<>(); }\n (i=investmentSizeRatingExpression { result.add($i.result); })+\n { $result = result; }\n;\n\ninvestmentSizeRatingExpression returns [InvestmentSize result] :\n 'Do úvěrů v ratingu ' r=ratingExpression ' investovat' i=investmentSizeRatingSubExpression {\n $result = new InvestmentSize($r.result, $i.result);\n }\n;\n","new_contents":"grammar InvestmentSize;\n\nimport Tokens;\n\n@header {\n import com.github.robozonky.strategy.natural.*;\n}\n\ninvestmentSizeExpression returns [Collection result]:\n { Collection result = new LinkedHashSet<>(); }\n (i=investmentSizeRatingExpression { result.add($i.result); })*\n { $result = result; }\n;\n\ninvestmentSizeRatingExpression returns [InvestmentSize result] :\n 'Do úvěrů v ratingu ' r=ratingExpression ' investovat' i=investmentSizeRatingSubExpression {\n $result = new InvestmentSize($r.result, $i.result);\n }\n;\n","subject":"Make investment size spec optional","message":"Make investment size spec optional\n","lang":"ANTLR","license":"apache-2.0","repos":"triceo\/zonkybot,triceo\/zonkybot,triceo\/robozonky,RoboZonky\/robozonky,triceo\/robozonky,RoboZonky\/robozonky"} {"commit":"e1b9c9441cd5b3050dcbcd6d1b3bbf90baf775f4","old_file":"java-vtl-parser\/src\/main\/antlr4\/imports\/Relational.g4","new_file":"java-vtl-parser\/src\/main\/antlr4\/imports\/Relational.g4","old_contents":"grammar Relational;\n\nrelationalExpression : unionExpression ;\n\nunionExpression : 'union' '(' datasetExpression (',' datasetExpression )* ')' ;\n\ndatasetExpression : 'datasetExpr' NUM+;\n\n\nNUM : '0'..'9' ;\nWS : [ \\t\\n\\t] -> skip ;\n","new_contents":"grammar Relational;\n\nrelationalExpression : unionExpression | joinExpression ;\n\nunionExpression : 'union' '(' datasetExpression (',' datasetExpression )* ')' ;\n\ndatasetExpression : 'datasetExpr' NUM+;\n\njoinExpression : '[' (INNER | OUTER | CROSS ) datasetExpression (',' datasetExpression )* ']' joinClause (',' joinClause)* ;\njoinClause : joinCalc\n | joinFilter\n | joinKeep\n | joinRename ;\n \/\/ | joinDrop\n \/\/ | joinUnfold\n \/\/ | joinFold ;\n\njoinCalc : 'TODO' ;\njoinFilter : 'TODO' ;\njoinKeep : 'TODO' ;\njoinRename : 'TODO' ;\n\nINNER : 'inner' ;\nOUTER : 'outer' ;\nCROSS : 'cross' ;\n\nNUM : '0'..'9' ;\n\nWS : [ \\t\\n\\t] -> skip ;\n","subject":"Add joinExpression to the relationalExpression","message":"Add joinExpression to the relationalExpression\n","lang":"ANTLR","license":"apache-2.0","repos":"statisticsnorway\/java-vtl,hadrienk\/java-vtl,hadrienk\/java-vtl,statisticsnorway\/java-vtl,statisticsnorway\/java-vtl,hadrienk\/java-vtl,statisticsnorway\/java-vtl"} {"commit":"71fb6f4f004cf36f99ab540b6120f32b77b81655","old_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","new_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","old_contents":"grammar Type;\n\nCT : [A-Z][a-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\ntype : functionType | compoundType; \/\/ function type\nfunctionType : compoundType ('->' type)+ ;\ncompoundType : concreteType | tupleType | listType | parenType ;\n\ntupleType : '(' type (',' type)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' type ']' ; \/\/ list type\nparenType : '(' type ')' ; \/\/ parenthesised constructor\n\nconcreteType : constantType | variableType ;\n\nconstantType : CT ;\nvariableType : VT ;\n","new_contents":"grammar Type;\n\nCT : [A-Z][a-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\ntype : functionType | compoundType ; \/\/ function type\nfunctionType : compoundType '->' type ;\ncompoundType : constantType | variableType | tupleType | listType | parenType ;\n\ntupleType : '(' type (',' type)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' type ']' ; \/\/ list type\nparenType : '(' type ')' ; \/\/ type with parentheses\n\nconstantType : CT ;\nvariableType : VT ;\n","subject":"Change antler grammar to support new type API","message":"Change antler grammar to support new type API\n","lang":"ANTLR","license":"mit","repos":"andrewdavidmackenzie\/viskell,viskell\/viskell,wandernauta\/viskell"} {"commit":"18e55457fb1e3b0a8033e9d002da0950482d08c3","old_file":"Grammar\/Expression.g4","new_file":"Grammar\/Expression.g4","old_contents":"grammar Expression;\n\nexpression : sign = ('-' | '+') expression\n\t\t\t| subExpresion\n\t\t\t| left = expression op = POW right = expression\n\t\t\t| left = expression op = ( MULT | DIV ) right = expression\n\t\t\t| left = expression op = ( ADD | SUB ) right = expression\n\t\t\t| function\n\t\t\t| value = ( IDENT | CONST )\n\t\t\t;\n\nsubExpresion : LPAREN expression RPAREN ;\n\nfunction : name = IDENT LPAREN paramFirst = expression ( ',' paramRest += expression )* RPAREN ;\n\nCONST\t: INTEGER | DECIMAL;\n\nINTEGER : [0-9]+;\n\nDECIMAL : [0-9]+'.'[0-9]+;\n\nIDENT : [_A-Za-z#][_.A-Za-z#]*;\n\nLPAREN : '(';\nRPAREN : ')';\n\nMULT : '*';\nDIV : '\/';\nADD : '+';\nSUB : '-';\nPOW : '^';\n\nWS : [ \\r\\t\\u000C\\n]+ -> skip ;","new_contents":"grammar Expression;\n\nexpression : sign = ('-' | '+') expression\n\t\t\t| subExpresion\n\t\t\t| left = expression op = POW right = expression\n\t\t\t| left = expression op = ( MULT | DIV ) right = expression\n\t\t\t| left = expression op = ( ADD | SUB ) right = expression\n\t\t\t| function\n\t\t\t| value = ( IDENT | CONST )\n\t\t\t;\n\nsubExpresion : LPAREN expression RPAREN ;\n\nfunction : name = IDENT LPAREN paramFirst = expression ( ',' paramRest += expression )* RPAREN ;\n\nCONST\t: INTEGER | DECIMAL;\n\nINTEGER : [0-9]+;\n\nDECIMAL : [0-9]+'.'[0-9]+;\n\nIDENT : [_#A-Za-z][_#.A-Za-z0-9]*;\n\nLPAREN : '(';\nRPAREN : ')';\n\nMULT : '*';\nDIV : '\/';\nADD : '+';\nSUB : '-';\nPOW : '^';\n\nWS : [ \\r\\t\\u000C\\n]+ -> skip ;\n","subject":"Allow numeric digits also in the identifier names.","message":"Allow numeric digits also in the identifier names.","lang":"ANTLR","license":"apache-2.0","repos":"GillSoftLimited\/GillSoft.ExpressionEvaluator"} {"commit":"519c14139cf90aa85d76fea7e8fd296a487def47","old_file":"java-vtl-parser\/src\/main\/antlr4\/kohl\/hadrien\/vtl\/parser\/VTL.g4","new_file":"java-vtl-parser\/src\/main\/antlr4\/kohl\/hadrien\/vtl\/parser\/VTL.g4","old_contents":"\/*-\n * #%L\n * Java VTL\n * %%\n * Copyright (C) 2016 Hadrien Kohl\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * #L%\n *\/\ngrammar VTL;\n\nimport Atoms, Clauses, Conditional, Relational;\n\nstart : statement+ EOF;\n\n\/* Assignment *\/\nstatement : variableRef ':=' datasetExpression;\n\nexprMember : datasetExpression ('#' componentID)? ;\n\n\/* Expressions *\/\ndatasetExpression : datasetExpression clauseExpression #withClause\n | relationalExpression #withRelational\n | getExpression #withGet\n | putExpression #withPut\n | exprAtom #withAtom\n ;\n\ncomponentID : IDENTIFIER;\n\ngetExpression : 'get' '(' datasetId ')';\nputExpression : 'put(todo)';\n\ndatasetId : STRING_CONSTANT ;\n\nWS : [ \\n\\r\\t\\u000C] -> skip ;\n","new_contents":"\/*-\n * #%L\n * Java VTL\n * %%\n * Copyright (C) 2016 Hadrien Kohl\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * #L%\n *\/\ngrammar VTL;\n\nimport Atoms, Clauses, Conditional, Relational;\n\nstart : statement+ EOF;\n\n\/* Assignment *\/\nstatement : variableRef ':=' datasetExpression;\n\nexprMember : datasetExpression ('#' componentID)? ;\n\n\/* Expressions *\/\ndatasetExpression : datasetExpression clauseExpression #withClause\n | relationalExpression #withRelational\n | getExpression #withGet\n | putExpression #withPut\n | exprAtom #withAtom\n ;\n\ncomponentID : IDENTIFIER;\n\ngetExpression : 'get' '(' datasetId ')';\nputExpression : 'put(todo)';\n\ndatasetId : STRING_CONSTANT ;\n\nWS : [ \\n\\r\\t\\u000C] -> skip ;\nCOMMENT : '\/*' .*? '*\/' -> skip;\n\n","subject":"Add comment to the parser grammar","message":"Add comment to the parser grammar\n","lang":"ANTLR","license":"apache-2.0","repos":"hadrienk\/java-vtl,statisticsnorway\/java-vtl,statisticsnorway\/java-vtl,statisticsnorway\/java-vtl,hadrienk\/java-vtl,statisticsnorway\/java-vtl,hadrienk\/java-vtl"} {"commit":"3a92e65e95143653dbbd4b9029e7d7827aca0d76","old_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","new_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","old_contents":"grammar Type;\n\nCT : [A-Z][a-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\ntype : typeClasses ? innerType ;\ninnerType : functionType | compoundType ; \/\/ function type\nfunctionType : compoundType '->' innerType ;\ncompoundType : constantType | variableType | tupleType | listType | parenType ;\n\ntupleType : '(' innerType (',' innerType)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' innerType ']' ; \/\/ list type\nparenType : '(' innerType ')' ; \/\/ type with parentheses\n\nconstantType : typeConstructor (WS* innerType)* ;\ntypeConstructor : CT ;\nvariableType : VT ;\n\ntypeClasses : '(' typeWithClass (',' typeWithClass)* ')' '=>' | typeWithClass '=>' ;\ntypeWithClass : typeClass WS* classedType ;\nclassedType : VT ;\ntypeClass : CT ;\n","new_contents":"grammar Type;\n\nCT : [A-Z][A-Za-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\ntype : (typeClasses '=>')? innerType ;\ninnerType : functionType | compoundType ; \/\/ function type\nfunctionType : compoundType '->' innerType ;\ncompoundType : constantType | variableType | tupleType | listType | parenType ;\n\ntupleType : '(' innerType (',' innerType)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' innerType ']' ; \/\/ list type\nparenType : '(' innerType ')' ; \/\/ type with parentheses\n\nconstantType : typeConstructor (innerType)* ;\ntypeConstructor : CT ;\nvariableType : VT ;\n\ntypeClasses : '(' typeWithClass (',' typeWithClass)* ')' | typeWithClass ;\ntypeWithClass : typeClass classedType ;\nclassedType : VT ;\ntypeClass : CT ;\n","subject":"Fix issue with lexing type classes with an uppercase character after the first position","message":"Fix issue with lexing type classes with an uppercase character after the first position\n","lang":"ANTLR","license":"mit","repos":"viskell\/viskell,andrewdavidmackenzie\/viskell,wandernauta\/viskell"} {"commit":"dc0a2c12f9cc5fdaf1d695b18cb926dea0ef9ad1","old_file":"src\/main\/antlr\/WorkflowCatalogQueryLanguage.g4","new_file":"src\/main\/antlr\/WorkflowCatalogQueryLanguage.g4","old_contents":"grammar WorkflowCatalogQueryLanguage;\n\n@header {\n package org.ow2.proactive.workflow_catalog.rest.query.parser;\n}\n\n\/\/ PARSER\n\nexpression\n : and_expression\n ;\n\nand_expression\n : or_expression (AND or_expression)*\n ;\n\nor_expression\n : clause (OR clause)*\n ;\n\nclause\n : (AttributeLiteral COMPARE_OPERATOR StringLiteral)\n | LPAREN and_expression RPAREN\n ;\n\n\/\/ LEXER\n\nAND : 'AND' | '&&' ;\nOR : 'OR' | '||' ;\nCOMPARE_OPERATOR : '!=' | '=' ;\nLPAREN : '(' ;\nRPAREN : ')' ;\n\nStringLiteral\n : '\"' (~[\"\\\\\\r\\n] | '\\\\' (. | EOF))* '\"'\n ;\n\nAttributeLiteral\n : LETTER (LETTER | DIGIT | '_' | '.')*\n ;\n\nWS\n : [ \\t\\r\\n]+ -> skip\n ;\n\nfragment DIGIT: [0-9];\nfragment LETTER: LOWERCASE | UPPERCASE;\nfragment LOWERCASE: [a-z];\nfragment UPPERCASE: [A-Z];\n","new_contents":"grammar WorkflowCatalogQueryLanguage;\n\n@header {\n package org.ow2.proactive.workflow_catalog.rest.query.parser;\n}\n\n\/\/ PARSER\n\nexpression\n : and_expression\n ;\n\nand_expression\n : or_expression (AND or_expression)*\n ;\n\nor_expression\n : clause (OR clause)*\n ;\n\nclause\n : (AttributeLiteral COMPARE_OPERATOR StringLiteral) #finalClause\n | LPAREN and_expression RPAREN #parenthesedClause\n ;\n\n\/\/ LEXER\n\nAND : 'AND' | '&&' ;\nOR : 'OR' | '||' ;\nCOMPARE_OPERATOR : '!=' | '=' ;\nLPAREN : '(' ;\nRPAREN : ')' ;\n\nStringLiteral\n : '\"' (~[\"\\\\\\r\\n] | '\\\\' (. | EOF))* '\"'\n ;\n\nAttributeLiteral\n : LETTER (LETTER | DIGIT | '_' | '.')*\n ;\n\nWS\n : [ \\t\\r\\n]+ -> skip\n ;\n\nfragment DIGIT: [0-9];\nfragment LETTER: LOWERCASE | UPPERCASE;\nfragment LOWERCASE: [a-z];\nfragment UPPERCASE: [A-Z];\n","subject":"Add aliases to clauses subterms","message":"Add aliases to clauses subterms\n","lang":"ANTLR","license":"agpl-3.0","repos":"gparanthoen\/workflow-catalog,ShatalovYaroslav\/catalog,yinan-liu\/workflow-catalog,lpellegr\/workflow-catalog,ShatalovYaroslav\/catalog,laurianed\/workflow-catalog,ow2-proactive\/catalog,ow2-proactive\/catalog,laurianed\/catalog,paraita\/workflow-catalog,ow2-proactive\/workflow-catalog,laurianed\/catalog,ow2-proactive\/catalog,laurianed\/catalog,ShatalovYaroslav\/catalog"} {"commit":"c222c0812214366a829b8ebccb11c84d08358e2f","old_file":"CIV\/Ccs\/CcsLexer.g4","new_file":"CIV\/Ccs\/CcsLexer.g4","old_contents":"lexer grammar CcsLexer;\n\nTERM: ';';\n\nNIL: '0';\nCOMMA: ',';\nDIV : '\/' ;\nDEF: '=';\nPAR: '|';\nPREFIX: '.';\nCHOICE: '+';\nTAU: 'tau';\nLBRACE : '{' ;\nRBRACE : '}' ;\nMUL : '*' ;\nSETDEF : 'set ' ;\nLPAREN : '(' ;\nRPAREN : ')' ;\nLBRACK : '[' ;\nRBRACK : ']' ;\nT__1 : '\\\\' ;\n\n\nCOACTION: '\\''[a-z][A-Za-z0-9]*;\nACTION: [a-z][A-Za-z0-9]*;\n\nfragment InputCharacter: ~[\\r\\n\\u0085\\u2028\\u2029];\nCOMMENT\n : MUL InputCharacter+\n | MUL\n ;\n\nIDENTIFIER\n : [A-Z][A-Za-z0-9]*\n ;\n\n\/\/RENAMINGS : RENAMING ',' RENAMINGS;\n\/\/RENAMING : ACTION ACTION;\n\n\/\/ ignore whitespace\nWHITESPACE : [ \\r\\n\\t] + -> channel (HIDDEN);\n\n","new_contents":"lexer grammar CcsLexer;\n\nTERM: ';';\n\nNIL: '0';\nCOMMA: ',';\nDIV : '\/' ;\nDEF: '=';\nPAR: '|';\nPREFIX: '.';\nCHOICE: '+';\nTAU: 'tau';\nLBRACE : '{' ;\nRBRACE : '}' ;\nMUL : '*' ;\nSETDEF : 'set ' ;\nLPAREN : '(' ;\nRPAREN : ')' ;\nLBRACK : '[' ;\nRBRACK : ']' ;\nT__1 : '\\\\' ;\n\n\nCOACTION: '\\''[a-z][A-Za-z0-9]*;\nACTION: [a-z][A-Za-z0-9]*;\n\nfragment InputCharacter: ~[\\r\\n\\u0085\\u2028\\u2029];\nCOMMENT\n : MUL InputCharacter+\n | MUL\n ;\n\nIDENTIFIER\n : [A-Z][A-Za-z0-9]*\n ;\n\n\/\/ ignore whitespace\nWHITESPACE : [ \\r\\n\\t] + -> channel (HIDDEN);\n\n","subject":"Remove useless stuff from lever grammar","message":"Remove useless stuff from lever grammar\n","lang":"ANTLR","license":"mit","repos":"lou1306\/CIV,lou1306\/CIV"} {"commit":"54bdd611119013f3b8094a681883f58ef261c6c2","old_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","new_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","old_contents":"grammar Type;\n\nCT : [A-Z][a-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\nbaseType : typeClasses ? type ;\ntype : functionType | compoundType ; \/\/ function type\nfunctionType : compoundType '->' type ;\ncompoundType : constantType | variableType | tupleType | listType | parenType ;\n\ntupleType : '(' type (',' type)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' type ']' ; \/\/ list type\nparenType : '(' type ')' ; \/\/ type with parentheses\n\nconstantType : typeConstructor (WS* type)* ;\ntypeConstructor : CT ;\nvariableType : VT ;\n\ntypeClasses : '(' typeWithClass (',' typeWithClass)* ')' '=>' ;\ntypeWithClass : typeClass WS* classedType ;\nclassedType : VT ;\ntypeClass : CT ;\n","new_contents":"grammar Type;\n\nCT : [A-Z][a-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\ntype : typeClasses ? innerType ;\ninnerType : functionType | compoundType ; \/\/ function type\nfunctionType : compoundType '->' innerType ;\ncompoundType : constantType | variableType | tupleType | listType | parenType ;\n\ntupleType : '(' innerType (',' innerType)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' innerType ']' ; \/\/ list type\nparenType : '(' innerType ')' ; \/\/ type with parentheses\n\nconstantType : typeConstructor (WS* innerType)* ;\ntypeConstructor : CT ;\nvariableType : VT ;\n\ntypeClasses : '(' typeWithClass (',' typeWithClass)* ')' '=>' ;\ntypeWithClass : typeClass WS* classedType ;\nclassedType : VT ;\ntypeClass : CT ;\n","subject":"Fix bug in Antlr grammar","message":"Fix bug in Antlr grammar\n","lang":"ANTLR","license":"mit","repos":"viskell\/viskell,andrewdavidmackenzie\/viskell,wandernauta\/viskell"} {"commit":"85b7e11fc4a86cd7bdc7878f86b597657b543bbd","old_file":"src\/antlr\/PTP.g4","new_file":"src\/antlr\/PTP.g4","old_contents":"grammar PTP;\n\n@header {\n\npackage pt.up.fe.iart.proj1.parser;\n\n}\n\nmap : stmt+ ;\n\nstmt : node_stmt #node\n | edge_stmt #edge\n ;\n\nedge_stmt : 'Edge' '(' from=node_stmt ',' to=node_stmt ',' weight=(INT|REAL) ')';\n\nnode_stmt : 'GasStation' '(' position ')' #GasStation\n | 'GenericLocation' '(' position ')' #GenericLocation\n | 'PatientLocation' '(' position ')' #PatientLocation\n | 'Filiation' '(' position ',' bool ')' #Filiation\n ;\n\nposition : '(' x=INT ',' y=INT ')' ;\nbool : 'true' | 'false' ;\n\nINT: [0-9]+ ;\nREAL: [0-9]+ '.' [0-9]* ;\n\nWS : [ \\t\\r\\n]+ -> skip;","new_contents":"grammar PTP;\n\n@header {\n\npackage pt.up.fe.iart.proj1.parser;\n\n}\n\nmap : stmt+ ;\n\nstmt : node_stmt #node\n | edge_stmt #edge\n ;\n\nedge_stmt : 'Edge' '(' from=node_stmt ',' to=node_stmt ',' weight=(INT|REAL) ')';\n\nnode_stmt : 'GasStation' '(' position ')' #GasStation\n | 'GenericLocation' '(' position ')' #GenericLocation\n | 'PatientLocation' '(' position ')' #PatientLocation\n | 'Filiation' '(' position ',' bool ')' #Filiation\n ;\n\nposition : '(' x=INT ',' y=INT ')' ;\nbool : 'true' | 'false' ;\n\nINT: [0-9]+ ;\nREAL: [0-9]+ '.' [0-9]* ;\n\nWS : [ \\t\\r\\n]+ -> skip;\nCOMMENT : '\/*' .*? '*\/' -> skip ;\nLINE_COMMENT : '\/\/' .*? '\\r'? '\\n' -> skip ;","subject":"Add comments to input grammar.","message":"Add comments to input grammar.\n","lang":"ANTLR","license":"mit","repos":"migulorama\/feup-iart-2014,migulorama\/feup-iart-2014"} {"commit":"9776dff4dbcafe4ee9b13d52fde5fbbdc2a0f6f2","old_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","new_file":"Code\/src\/main\/antlr4\/nl\/utwente\/group10\/haskell\/typeparser\/Type.g4","old_contents":"grammar Type;\n\nCT : [A-Z][a-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\ntype : typeClasses ? innerType ;\ninnerType : functionType | compoundType ; \/\/ function type\nfunctionType : compoundType '->' innerType ;\ncompoundType : constantType | variableType | tupleType | listType | parenType ;\n\ntupleType : '(' innerType (',' innerType)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' innerType ']' ; \/\/ list type\nparenType : '(' innerType ')' ; \/\/ type with parentheses\n\nconstantType : typeConstructor (WS* innerType)* ;\ntypeConstructor : CT ;\nvariableType : VT ;\n\ntypeClasses : '(' typeWithClass (',' typeWithClass)* ')' '=>' ;\ntypeWithClass : typeClass WS* classedType ;\nclassedType : VT ;\ntypeClass : CT ;\n","new_contents":"grammar Type;\n\nCT : [A-Z][a-z]+ ;\nVT : [a-z]+ ;\nWS : [ \\t\\r\\n]+ -> skip ;\n\ntype : typeClasses ? innerType ;\ninnerType : functionType | compoundType ; \/\/ function type\nfunctionType : compoundType '->' innerType ;\ncompoundType : constantType | variableType | tupleType | listType | parenType ;\n\ntupleType : '(' innerType (',' innerType)+ ')' ; \/\/ tuple type, k>=2\nlistType : '[' innerType ']' ; \/\/ list type\nparenType : '(' innerType ')' ; \/\/ type with parentheses\n\nconstantType : typeConstructor (WS* innerType)* ;\ntypeConstructor : CT ;\nvariableType : VT ;\n\ntypeClasses : '(' typeWithClass (',' typeWithClass)* ')' '=>' | typeWithClass '=>' ;\ntypeWithClass : typeClass WS* classedType ;\nclassedType : VT ;\ntypeClass : CT ;\n","subject":"Add single type class notation to type parser","message":"Add single type class notation to type parser\n","lang":"ANTLR","license":"mit","repos":"viskell\/viskell,wandernauta\/viskell,andrewdavidmackenzie\/viskell"} {"commit":"cbb36f12618776325394b28081a20c56218ff55a","old_file":"src\/Track.g4","new_file":"src\/Track.g4","old_contents":"","new_contents":"grammar Track;\n\ntrack: track_decl decl* ;\n\ntrack_decl: 'track' '{' IDENT+ '}' ;\n\ndecl: block_decl | channel_decl ;\n\nblock_decl: IDENT '::' 'block' '{' block_body '}' ;\nblock_body: (note)+ ;\nnote: NOTENAME OCTAVE? LENGTH? ;\n\nchannel_decl: IDENT '::' 'channel' WAVE '{' channel_body '}' ;\nchannel_body: (block_name)+ ;\nblock_name: IDENT ;\n\nNOTENAME: 'Ab'\n | 'A'\n | 'A#'\n | 'Bb'\n | 'B'\n | 'C'\n | 'C#'\n | 'Db'\n | 'D'\n | 'D#'\n | 'Eb'\n | 'E'\n | 'F'\n | 'F#'\n | 'Gb'\n | 'G'\n | 'G#'\n | 'R'\n ;\n\nOCTAVE: [0-9] | '10' ;\nLENGTH: [-+.]+ ;\n\nWAVE: 'triangle' | 'square' | 'sawtooth' | 'noise' ;\n\nIDENT: [a-zA-Z][a-zA-Z0-9_]+ ;\nWS: [\\t\\r\\n ]+ -> skip ;\n","subject":"Add first attempt at track grammar","message":"Add first attempt at track grammar\n","lang":"ANTLR","license":"mit","repos":"hdgarrood\/klasma"} {"commit":"aebb88195e0e5de2b0f411682c5cb2e9c763c36d","old_file":"src\/antlr\/PTP.g4","new_file":"src\/antlr\/PTP.g4","old_contents":"","new_contents":"grammar PTP;\n\n@header {\n\npackage pt.up.fe.iart.proj1.parser;\n\n}\n\nmap : stmt+ ;\n\nstmt : node_stmt #node\n | edge_stmt #edge\n ;\n\nedge_stmt : 'Edge' '(' from=node_stmt ',' to=node_stmt ',' weight=(INT|REAL) ')';\n\nnode_stmt : 'GasStation' '(' position ')' #GasStation\n | 'GenericLocation' '(' position ')' #GenericLocation\n | 'PatientLocation' '(' position ')' #PatientLocation\n | 'Filiation' '(' position ',' bool ')' #Filiation\n ;\n\nposition : '(' x=INT ',' y=INT ')' ;\nbool : 'true' | 'false' ;\n\nINT: [0-9]+ ;\nREAL: [0-9]+ '.' [0-9]* ;\n\nWS : [ \\t\\r\\n]+ -> skip;","subject":"Create prolog\/scala based ANTLR 4 grammar to use to parse input files.","message":"Create prolog\/scala based ANTLR 4 grammar to use to parse input files.\n","lang":"ANTLR","license":"mit","repos":"migulorama\/feup-iart-2014,migulorama\/feup-iart-2014"} {"commit":"bdbf016eca2e0a116b46ecef3a578dafd48a0390","old_file":"viper\/grammar\/Viper.g4","new_file":"viper\/grammar\/Viper.g4","old_contents":"","new_contents":"grammar Viper;\n\ntokens { NAME\n , NEWLINE\n , INDENT\n , DEDENT\n , NUMBER\n , STRING\n }\n\nfunc_def: 'def' func_name parameters '->' func_type ':' suite ;\nfunc_name: NAME ;\nfunc_type: type_expr ;\n\nparameters: '(' params_list? ')' ;\nparams_list: argless_parameter parameter* ;\nparameter: arg_label? argless_parameter ;\nargless_parameter: param_name ':' param_type ;\narg_label: NAME ;\nparam_name: NAME ;\nparam_type: type_expr ;\n\ntype_expr: NAME ;\n\nsuite: ( simple_stmt\n | NEWLINE INDENT stmt+ DEDENT\n ) ;\n\nstmt: ( simple_stmt\n | compound_stmt\n ) ;\n\nsimple_stmt: expr_stmt NEWLINE ;\nexpr_stmt: ( expr_list\n | 'pass'\n | 'return' expr_list?\n ) ;\n\nexpr_list: expr (',' expr)* ;\n\nexpr: atom_expr ;\natom_expr: atom trailer* ;\natom: ( '(' expr_list? ')'\n | NAME\n | NUMBER\n | STRING\n | '...'\n | 'Zilch'\n | 'True'\n | 'False'\n ) ;\ntrailer: ( '(' arg_list? ')'\n | '.' NAME\n ) ;\n\ncompound_stmt: ( func_def\n | object_def\n | data_def\n ) ;\n\nobject_def: ( class_def\n | interface_def\n | implementation_def\n ) ;\n\nclass_def: 'class' common_def ;\ninterface_def: 'interface' common_def ;\nimplementation_def: NAME common_def ;\ndata_def: 'data' common_def ;\ncommon_def: NAME ('(' arg_list? ')')? ':' suite ;\narg_list: argument (',' argument)* ;\nargument: expr ;\n","subject":"Add grammar in ANTLR 4 format","message":"Add grammar in ANTLR 4 format\n\n","lang":"ANTLR","license":"apache-2.0","repos":"pdarragh\/Viper"}