commit
stringlengths
40
40
old_file
stringlengths
2
205
new_file
stringlengths
2
205
old_contents
stringlengths
0
32.9k
new_contents
stringlengths
1
38.9k
subject
stringlengths
3
9.4k
message
stringlengths
6
9.84k
lang
stringlengths
3
13
license
stringclasses
13 values
repos
stringlengths
6
115k
b675eb688dc8889311422f7855e23f7798a246ac
src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4
src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4
lexer grammar CreoleTokens; options { superClass=ContextSensitiveLexer; } @members { // We keep track of whether we're in bold or not with this state. It's not // ideal, but as the start/end formatting tokens are all the same, this is // probably the best we can do (short of going crazy with lexer modes). For...
lexer grammar CreoleTokens; options { superClass=ContextSensitiveLexer; } @members { // We keep track of whether we're in bold or not with this state. It's not // ideal, but as the start/end formatting tokens are all the same, this is // probably the best we can do (short of going crazy with lexer modes). For...
Replace usage of Character.isAlphabetic with Character.isLetter
Replace usage of Character.isAlphabetic with Character.isLetter
ANTLR
apache-2.0
strr/reviki,ashirley/reviki,strr/reviki,strr/reviki,strr/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,CoreFiling/reviki,CoreFiling/reviki,ashirley/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,strr/reviki
3887435efa2c156ecdcd3963347ba3ad61b5b620
testlib/src/main/resources/antlr4/Hello.formatted.g4
testlib/src/main/resources/antlr4/Hello.formatted.g4
// Define a grammar called Hello grammar Hello; r : 'hello' ID ; // match keyword hello followed by an identifier ID : [a-z] + ; // match lower-case identifiers WS : [ \t\r\n] + -> skip ;
// Define a grammar called Hello grammar Hello; r : 'hello' ID ; // match keyword hello followed by an identifier ID : [a-z]+ ; // match lower-case identifiers WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines
fix expected format
fix expected format
ANTLR
apache-2.0
diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless
554d7ad9f622d5ac20c630383f748f47454294ef
unicode/graphemes/Graphemes.g4
unicode/graphemes/Graphemes.g4
grammar Graphemes; Extend: [\p{Grapheme_Cluster_Break=Extend}]; ZWJ: '\u200D'; SpacingMark: [\p{Grapheme_Cluster_Break=SpacingMark}]; fragment VS15: '\uFE0E'; fragment VS16: '\uFE0F'; fragment NonspacingMark: [\p{Nonspacing_Mark}]; fragment TextPresentationCharacter: [\p{EmojiPresentation=TextDefault}]; fragment Emoji...
grammar Graphemes; Extend: [\p{Grapheme_Cluster_Break=Extend}]; ZWJ: '\u200D'; SpacingMark: [\p{Grapheme_Cluster_Break=SpacingMark}]; fragment VS15: '\uFE0E'; fragment VS16: '\uFE0F'; fragment NonspacingMark: [\p{Nonspacing_Mark}]; fragment TextPresentationCharacter: [\p{EmojiPresentation=TextDefault}]; fragment Emoji...
Fix emoji modified sequences. I currently use "EmojiCharacter", but it should probably be more specific. Let's see if this works, though.
Fix emoji modified sequences. I currently use "EmojiCharacter", but it should probably be more specific. Let's see if this works, though.
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
3126c9526096927d253f080ccd9d370710e7be3c
sharding-jdbc-ddl-parser/src/main/antlr4/imports/MySQLBase.g4
sharding-jdbc-ddl-parser/src/main/antlr4/imports/MySQLBase.g4
grammar MySQLBase; import MySQLKeyword,Keyword,Symbol,DataType, BaseRule; symbol: ID ; fkSymbol: ID ; indexAndKey: INDEX|KEY ; characterAndCollate: characterSet collateClause ; characterSet: (CHARACTER | CHAR) SET charsetName |CHARSET EQ_OR_ASSIGN? charsetName ...
grammar MySQLBase; import MySQLKeyword,Keyword,Symbol,DataType, BaseRule; symbol: ID ; fkSymbol: ID ; indexAndKey: INDEX|KEY ; characterAndCollate: characterSet collateClause ; characterSet: (CHARACTER | CHAR) SET charsetName |CHARSET EQ_OR_ASSIGN? charsetName ...
fix bug for sql "PARTITION p0 VALUES IN ((0,0))"
fix bug for sql "PARTITION p0 VALUES IN ((0,0))"
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
4f853ec9d39a58aa9a8affc9d219cc07f673a2f9
antlr3/ANTLRv3.g4
antlr3/ANTLRv3.g4
/* [The "BSD licence"] Copyright (c) 2005-2007 Terence Parr All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list ...
/* [The "BSD licence"] Copyright (c) 2005-2007 Terence Parr All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list ...
fix grammaer
fix grammaer
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
8a90273a6bcf902a267c8f5de9ad37e203a63694
projects/batfish/src/org/batfish/grammar/flatjuniper/FlatJuniper_routing_instances.g4
projects/batfish/src/org/batfish/grammar/flatjuniper/FlatJuniper_routing_instances.g4
parser grammar FlatJuniper_routing_instances; import FlatJuniper_common, FlatJuniper_protocols; options { tokenVocab = FlatJuniperLexer; } agast_origin : ORIGIN IGP ; agast_path : PATH path = as_path_expr ; agt_as_path : AS_PATH agt_as_path_tail ; agt_as_path_tail : agast_origin | agast_path ; ...
parser grammar FlatJuniper_routing_instances; import FlatJuniper_common, FlatJuniper_protocols; options { tokenVocab = FlatJuniperLexer; } agast_origin : ORIGIN IGP ; agast_path : PATH path = as_path_expr ; agt_as_path : AS_PATH agt_as_path_tail ; agt_as_path_tail : agast_origin | agast_path ; ...
revert 371d23b263236d2007a109cc377180e5336e6c09 which completely breaks juniper
revert 371d23b263236d2007a109cc377180e5336e6c09 which completely breaks juniper
ANTLR
apache-2.0
arifogel/batfish,intentionet/batfish,batfish/batfish,dhalperi/batfish,dhalperi/batfish,arifogel/batfish,arifogel/batfish,intentionet/batfish,intentionet/batfish,intentionet/batfish,batfish/batfish,intentionet/batfish,dhalperi/batfish,batfish/batfish
d368c92b96f030e3ee5d0ca19ae52d2ca85993cd
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; grantRolesToPrograms : roleName (COMMA roleName)* TO programUnit ( COMMA programUnit )* ; programUnit : (FUNCTION | PROCEDURE | PACKAGE) schemaName? ID ;
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; grantObjectPrivileges : objectPrivilege (COMMA objectPrivilege)* ; grantObjectPrivilege : (objectPrivilege | ALL PRIVILEGES?)( LEFT_PAREN columnName (COMMA columnName)* RIGHT_PAREN)? ; objectPrivi...
add grantObjectPrivileges
add grantObjectPrivileges
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
579ee7da17b96efe2a3533b08a856652337cc1c6
java-vtl-parser/src/main/antlr4/kohl/hadrien/vtl/parser/VTL.g4
java-vtl-parser/src/main/antlr4/kohl/hadrien/vtl/parser/VTL.g4
/*- * #%L * Java VTL * %% * Copyright (C) 2016 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
/*- * #%L * Java VTL * %% * Copyright (C) 2016 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
Move all anlr rules into one file for easier debugging. Can be split again later
KP-1929: Move all anlr rules into one file for easier debugging. Can be split again later
ANTLR
apache-2.0
hadrienk/java-vtl,hadrienk/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl
bf252c7ae65a37657082d248b01c74f1d2880734
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
modify literals_
modify literals_
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
d8e171ecce762729b17687de84be339ae0dd8870
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/Literals.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/Literals.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
modify NUMBER_
modify NUMBER_
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
1879f39390bc77cad7f5e1ab80ee878ef33b08f4
src/main/antlr4/org/codehaus/groovy/parser/antlr4/GroovyLexer.g4
src/main/antlr4/org/codehaus/groovy/parser/antlr4/GroovyLexer.g4
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
Revert the changes of JavaLetter and JavaLetterOrDigit
Revert the changes of JavaLetter and JavaLetterOrDigit
ANTLR
apache-2.0
danielsun1106/groovy-parser,danielsun1106/groovy-parser
503304dcbbff49c92e87eefa87d505aa011822e3
IronVelocity/Parser/VelocityLexer.g4
IronVelocity/Parser/VelocityLexer.g4
lexer grammar VelocityLexer; tokens { IDENTIFIER, COMMENT, } DOLLAR : '$' -> pushMode(REFERENCE) ; HASH : '#' -> pushMode(HASH_SEEN) ; TEXT : ~('$'| '#')+ ; fragment IDENTIFIER : [a-zA-Z][a-zA-Z0-9]* ; fragment NEWLINE : '\r' | '\n' | '\r\n' ; mode HASH_SEEN ; SINGLE_LINE_COMMENT : '#' ~('\r' | '\n')* NEWLINE? ...
lexer grammar VelocityLexer; tokens { IDENTIFIER, COMMENT, } DOLLAR : '$' -> pushMode(REFERENCE) ; HASH : '#' -> pushMode(HASH_SEEN) ; TEXT : ~('$'| '#')+ ; fragment IDENTIFIER : [a-zA-Z][a-zA-Z0-9]* ; fragment NEWLINE : '\r' | '\n' | '\r\n' ; //=================================== //The mode is for when a hash h...
Add some explanation around the HASH_SEEN lexer mode.
Add some explanation around the HASH_SEEN lexer mode.
ANTLR
mit
afscrome/IronVelocity
65b2cfc6d0964f3ee54e6ce65610237d059145ec
date-rule-antlr/src/main/antlr4/io/github/hjuergens/time/Period.g4
date-rule-antlr/src/main/antlr4/io/github/hjuergens/time/Period.g4
grammar Period; import TimeLexer; options { language = Java; } @header { import org.joda.time.Period; } /*------------------------------------------------------------------ * PARSER RULES *------------------------------------------------------------------*/ // period, TODO consider The standard ISO forma...
grammar Period; import TimeLexer; options { language = Java; } @header { import org.joda.time.Period; } /*------------------------------------------------------------------ * PARSER RULES *------------------------------------------------------------------*/ // period, TODO consider The standard ISO forma...
simplify weekssub
simplify weekssub
ANTLR
apache-2.0
hjuergens/date-parser,hjuergens/date-parser,hjuergens/date-parser
6cb140503ebb4fba54748fad34050028835c5ad0
cache/src/main/antlr4/net/runelite/cache/script/assembler/rs2asm.g4
cache/src/main/antlr4/net/runelite/cache/script/assembler/rs2asm.g4
/* * Copyright (c) 2017, Adam <Adam@sigterm.info> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * li...
/* * Copyright (c) 2017, Adam <Adam@sigterm.info> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * li...
allow multiple newlines after header or instruction
rs2asm: allow multiple newlines after header or instruction Even though NEWLINE reads multiple newline characters, the lexer can emit multiple NEWLINE tokens from having only a comment on a line
ANTLR
bsd-2-clause
devinfrench/runelite,runelite/runelite,Sethtroll/runelite,KronosDesign/runelite,devinfrench/runelite,runelite/runelite,abelbriggs1/runelite,Noremac201/runelite,l2-/runelite,abelbriggs1/runelite,runelite/runelite,l2-/runelite,KronosDesign/runelite,Sethtroll/runelite,Noremac201/runelite,abelbriggs1/runelite
bc39b3c67b5e6f594e8a1923beb15cbb36a71c13
source/Owin.Scim.Antlr/ScimFilter.g4
source/Owin.Scim.Antlr/ScimFilter.g4
grammar ScimFilter; parse : filter ; filter : FIELD SP PR #presentExp | FIELD SP COMPAREOPERATOR SP VALUE #operatorExp | NOT? SP* '(' filter ')' #braceExp | FIELD '[' valPathFilter ']' #valPathExp | filter SP AND SP filter #andExp | filter SP OR SP filter #orExp ; valPathFilter : FIELD SP PR ...
grammar ScimFilter; parse : filter ; filter : FIELD SP PR #presentExp | FIELD SP COMPAREOPERATOR SP VALUE #operatorExp | NOT? SP* '(' filter ')' #braceExp | FIELD '[' valPathFilter ']' #valPathExp | filter SP AND SP filter #andExp | filter SP OR SP filter #orExp ; valPathFilter : FIELD SP PR ...
Update ScimFilter.g4
Update ScimFilter.g4
ANTLR
mit
PowerDMS/Owin.Scim,PowerDMS/Owin.Scim,PowerDMS/Owin.Scim
0c5e3c6f210212110ce3b3cfe810a9d596885b50
vrj.g4
vrj.g4
grammar vrj; init: ( typeDefinition | nativeDefinition | globalDefinition | functionDefinition | libraryDefinition | structDefinition | NL )* EOF; visibility: 'private' | 'public'; name: ID ('.' ID)*; type: ID | 'nothing'; param: type name; paramList: (param (',' param)*) | 'nothing'; ...
grammar vrj; init: ( typeDefinition | nativeDefinition | globalDefinition | functionDefinition | libraryDefinition | structDefinition | NL )* EOF; visibility: 'private' | 'public'; name: ID ('.' ID)*; type: ID | 'nothing'; param: type name; paramList: (param (',' param)*) | 'nothing'; ...
Add extends array to grammar
Add extends array to grammar
ANTLR
mit
Ruk33/vrJASS2
7f5b30d4ab287080678656265491e68cab035b09
Parser/grammar/PoCoParser.g4
Parser/grammar/PoCoParser.g4
/* * PoCo Grammar */ parser grammar PoCoParser; options { tokenVocab=PoCoLexer; } policy: pimports macrodecls ppol | pimports ppol | macrodecls ppol | ppol ; ppol: metapol | id LPAREN paramlist RPAREN COLON vardecls macrodecls execution transactionlist | ...
/* * PoCo Grammar */ parser grammar PoCoParser; options { tokenVocab=PoCoLexer; } policy: pimports macrodecls ppol | pimports ppol | macrodecls ppol | ppol ; ppol: metapol | pocopol ; pocopol: id LPAREN paramlist RPAREN COLON vardecls macrodecls execu...
Split ppol into metapol and pocopol rules.
Split ppol into metapol and pocopol rules. metapol are policies that specify policy trees. pocopol are traditional PoCo policies.
ANTLR
lgpl-2.1
Corjuh/PoCo-Compiler
710dc40cea654f90c33297044497a7ab5145bd74
de.peeeq.wurstscript/src/main/antlr/de/peeeq/wurstscript/jurst/antlr/Jurst.g4
de.peeeq.wurstscript/src/main/antlr/de/peeeq/wurstscript/jurst/antlr/Jurst.g4
grammar Jurst; @header { package de.peeeq.wurstscript.jurst.antlr; } compilationUnit : NL* decls+=topLevelDeclaration*; topLevelDeclaration: wpackage | jassTopLevelDeclaration ; jassTopLevelDeclaration: jassGlobalsBlock | jassFuncDef | jassTypeDecl | jassNati...
grammar Jurst; @header { package de.peeeq.wurstscript.jurst.antlr; } compilationUnit : NL* decls+=topLevelDeclaration*; topLevelDeclaration: wpackage | jassTopLevelDeclaration ; jassTopLevelDeclaration: jassGlobalsBlock | jassFuncDef | jassTypeDecl | jassNati...
Apply hex fix to Jurst as well
Apply hex fix to Jurst as well
ANTLR
apache-2.0
wurstscript/WurstScript,Cokemonkey11/WurstScript,peq/WurstScript,wurstscript/WurstScript,Cokemonkey11/WurstScript,Cokemonkey11/WurstScript,peq/WurstScript,wurstscript/WurstScript,Cokemonkey11/WurstScript,peq/WurstScript,peq/WurstScript,Cokemonkey11/WurstScript
4c8d99af8327ecb52f6dfcd311b13c8ccd6dd0cc
protostuff-parser/src/main/antlr4/io/protostuff/compiler/parser/ProtoLexer.g4
protostuff-parser/src/main/antlr4/io/protostuff/compiler/parser/ProtoLexer.g4
lexer grammar ProtoLexer; PACKAGE : 'package' ; SYNTAX : 'syntax' ; IMPORT : 'import' ; PUBLIC : 'public' ; OPTION : 'option' ; MESSAGE : 'message' ; GROUP : 'group' ; OPTIONAL : 'optional' ; REQUIRED : 'required' ; REPEATED : 'repeated' ;...
lexer grammar ProtoLexer; PACKAGE : 'package' ; SYNTAX : 'syntax' ; IMPORT : 'import' ; PUBLIC : 'public' ; OPTION : 'option' ; MESSAGE : 'message' ; GROUP : 'group' ; OPTIONAL : 'optional' ; REQUIRED : 'required' ; REPEATED : 'repeated' ;...
Add ERRCHAR rule to the lexer for protostuff-jetbrains-plugin
Add ERRCHAR rule to the lexer for protostuff-jetbrains-plugin
ANTLR
apache-2.0
protostuff/protostuff-compiler,kshchepanovskyi/proto-compiler,kshchepanovskyi/proto-compiler,protostuff/protostuff-compiler,kshchepanovskyi/protostuff-compiler,kshchepanovskyi/proto-compiler,kshchepanovskyi/protostuff-compiler,kshchepanovskyi/protostuff-compiler,protostuff/protostuff-compiler
8258d6f5217445c375ca5f0478dd51b3a54f8d34
dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/SpeckyLexer.g4
dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/SpeckyLexer.g4
/* Copyright © 2016 Matthew Champion All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
/* Copyright © 2016 Matthew Champion All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
Allow escaping of characters inside string literals.
Allow escaping of characters inside string literals.
ANTLR
bsd-3-clause
mattunderscorechampion/specky,mattunderscorechampion/specky,mattunderscorechampion/specky
1870b86b8202fdd214c2d7b9aaefe99520290263
Src/grammar/cql.g4
Src/grammar/cql.g4
grammar cql; /* * Clinical Quality Language Grammar Specification * Version 1.3 - May 2018 STU3 Ballot */ import fhirpath; /* * Parser Rules */ library : libraryDefinition? usingDefinition* includeDefinition* codesystemDefinition* valuesetDefinition* codeDefinition* conceptDefinition* paramet...
grammar cql; /* * Clinical Quality Language Grammar Specification * Version 1.3 - STU3 Publication */ import fhirpath; /* * Parser Rules */ library : libraryDefinition? usingDefinition* includeDefinition* codesystemDefinition* valuesetDefinition* codeDefinition* conceptDefinitio...
Document required from keyword option
STU3#218: Document required from keyword option
ANTLR
apache-2.0
cqframework/clinical_quality_language,cqframework/clinical_quality_language
56494394148c9361b0c1b8cddaec65b4cf2233d3
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
rename granteeClause to grantees
rename granteeClause to grantees
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
c9439ec51a02219a6a29cd28cbb0662ad5d186dd
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
fix #2379, add user to unreserved word for MySQL parse
fix #2379, add user to unreserved word for MySQL parse
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere
d5d28287e8f0f3459226b9edd5f202415515bb6b
sharding-core/src/main/antlr4/imports/SQLServerDCLStatement.g4
sharding-core/src/main/antlr4/imports/SQLServerDCLStatement.g4
grammar SQLServerDCLStatement; import SQLServerKeyword, DataType, Keyword, SQLServerBase, BaseRule, Symbol; grant : grantGeneral | grantDW ; grantGeneral : GRANT generalPrisOn TO ids (WITH GRANT OPTION)? (AS ID)? ; generalPrisOn : (ALL PRIVILEGES? | permissionOnColumns (COMMA permissionO...
grammar SQLServerDCLStatement; import SQLServerKeyword, DataType, Keyword, SQLServerBase, BaseRule, Symbol; grant : grantGeneral | grantDW ; grantGeneral : GRANT generalPrisOn TO ids (WITH GRANT OPTION)? (AS ID)? ; generalPrisOn : (ALL PRIVILEGES? | permissionOnColumns (COMMA permissionO...
fix sqlserver hashed password rule
fix sqlserver hashed password rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
fbe865f8ba510cbdb1540fcf9517a42820a4d097
Solidity.g4
Solidity.g4
// Copyright 2016-2017 Federico Bond <federicobond@gmail.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // ...
// Copyright 2016-2017 Federico Bond <federicobond@gmail.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // ...
Make forStatement with empty condition easier to detect
Make forStatement with empty condition easier to detect
ANTLR
mit
federicobond/solidity-antlr4,solidityj/solidity-antlr4
d936ee063930193e6ea870c6a7fc7d3d7c6e1d23
omni-cx2x/src/cx2x/translator/language/parser/Claw.g4
omni-cx2x/src/cx2x/translator/language/parser/Claw.g4
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import cx2x.translator.common.ClawConstant; import cx2x.translator.language.base.*; import cx2x.translat...
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import cx2x.translator.common.ClawConstant; import cx2x.translator.language.base.*; import cx2x.translat...
Unify lexer rules
Unify lexer rules
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
513ab60238c7c9141a9413262b5de825b8308b25
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
add characterSetName_
add characterSetName_
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
1d0347fe35fe28ff4faee92879ba0a0799bd3b8f
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
remove REVERSE_QUOTE_ID rename keywordCanBeID to keywordIdentifier_
remove REVERSE_QUOTE_ID rename keywordCanBeID to keywordIdentifier_
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
ac1578742f8a8a7590b2bf92175f221529236fb8
sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
adjust the sequences of statements for oracle
adjust the sequences of statements for oracle
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc
8139cd137f2f0af36f73599d2beae8fa0c30df82
projects/batfish/src/main/antlr4/org/batfish/grammar/flatjuniper/FlatJuniper_routing_instances.g4
projects/batfish/src/main/antlr4/org/batfish/grammar/flatjuniper/FlatJuniper_routing_instances.g4
parser grammar FlatJuniper_routing_instances; import FlatJuniper_common, FlatJuniper_forwarding_options, FlatJuniper_protocols, FlatJuniper_snmp; options { tokenVocab = FlatJuniperLexer; } ri_common : apply | ri_description | s_forwarding_options | s_routing_options ; ri_description : description ...
parser grammar FlatJuniper_routing_instances; import FlatJuniper_common, FlatJuniper_forwarding_options, FlatJuniper_protocols, FlatJuniper_snmp; options { tokenVocab = FlatJuniperLexer; } ri_common : apply | ri_description | s_forwarding_options | s_routing_options ; ri_description : description ...
Correct token alphabetization (#3024)
Correct token alphabetization (#3024)
ANTLR
apache-2.0
arifogel/batfish,intentionet/batfish,intentionet/batfish,intentionet/batfish,batfish/batfish,arifogel/batfish,arifogel/batfish,dhalperi/batfish,dhalperi/batfish,batfish/batfish,dhalperi/batfish,batfish/batfish,intentionet/batfish,intentionet/batfish
4dbaa87e825fc873d226f63c5aa6e686966e6f1a
sparkle-V4/sparkle-pretty-printer/src/main/antlr4/com/googlecode/sparkleg/SparqlParser.g4
sparkle-V4/sparkle-pretty-printer/src/main/antlr4/com/googlecode/sparkleg/SparqlParser.g4
/* * Copyright 2007-2012 The sparkle-g Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
/* * Copyright 2007-2012 The sparkle-g Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
Allow empty queries. Allow queries with just a prologue part.
Allow empty queries. Allow queries with just a prologue part.
ANTLR
apache-2.0
JuPfu/sparkle-g
ad8ecdfafc0515e9f1881176c15a4352ecd3a963
src/net/hillsdon/reviki/wiki/renderer/creole/Creole.g4
src/net/hillsdon/reviki/wiki/renderer/creole/Creole.g4
/* Todo: * - Comments justifying and explaining every rule. * - Allow arbitrarily-nested lists (see actions/attributes) */ parser grammar Creole; options { tokenVocab=CreoleTokens; superClass=ContextSensitiveParser; } /* ***** Top level elements ***** */ creole : (block (LineBreak | ParBreak)*)* EOF ; ...
/* Todo: * - Comments justifying and explaining every rule. * - Allow arbitrarily-nested lists (see actions/attributes) */ parser grammar Creole; options { tokenVocab=CreoleTokens; superClass=ContextSensitiveParser; } /* ***** Top level elements ***** */ creole : (block (LineBreak | ParBreak)*)* EOF ; ...
Allow empty trailing table cells on the last row before a parbreak
Allow empty trailing table cells on the last row before a parbreak
ANTLR
apache-2.0
strr/reviki,ashirley/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,CoreFiling/reviki,ashirley/reviki,strr/reviki,ashirley/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,CoreFiling/reviki,CoreFiling/reviki
309238adba52675dc843e4f47099e91f0414f142
VineScript/Compiler/VineLexer.g4
VineScript/Compiler/VineLexer.g4
lexer grammar VineLexer; @header { using System; } @members{ //public override IToken Emit(){ // switch (_type) { // case RESERVED_CHARS: // //setType(RESERVED_CHARS); // IToken result = base.Emit(); // // you'll need to define this method // ...
lexer grammar VineLexer; @header { using System; } @members{ //public override IToken Emit(){ // switch (_type) { // case RESERVED_CHARS: // //setType(RESERVED_CHARS); // IToken result = base.Emit(); // // you'll need to define this method // ...
include a whole new range of unicode white space What I did not include: OGHAM SPACE MARK (U+1680), LINE TABULATION (U+000B), NEXT LINE (U+0085)
Grammar: include a whole new range of unicode white space What I did not include: OGHAM SPACE MARK (U+1680), LINE TABULATION (U+000B), NEXT LINE (U+0085)
ANTLR
mit
julsam/VineScript
3a92e65e95143653dbbd4b9029e7d7827aca0d76
Code/src/main/antlr4/nl/utwente/group10/haskell/typeparser/Type.g4
Code/src/main/antlr4/nl/utwente/group10/haskell/typeparser/Type.g4
grammar Type; CT : [A-Z][a-z]+ ; VT : [a-z]+ ; WS : [ \t\r\n]+ -> skip ; type : typeClasses ? innerType ; innerType : functionType | compoundType ; // function type functionType : compoundType '->' innerType ; compoundType : constantType | variableType | tupleType | listType | parenType ; tupleType : '(' innerType (...
grammar Type; CT : [A-Z][A-Za-z]+ ; VT : [a-z]+ ; WS : [ \t\r\n]+ -> skip ; type : (typeClasses '=>')? innerType ; innerType : functionType | compoundType ; // function type functionType : compoundType '->' innerType ; compoundType : constantType | variableType | tupleType | listType | parenType ; tupleType : '(' in...
Fix issue with lexing type classes with an uppercase character after the first position
Fix issue with lexing type classes with an uppercase character after the first position
ANTLR
mit
viskell/viskell,andrewdavidmackenzie/viskell,wandernauta/viskell
a87c70533f040b53e0eea5b374c6bd132793002a
impl/src/main/antlr4/com/groupon/lex/metrics/grammar/ConfigTokenizer.g4
impl/src/main/antlr4/com/groupon/lex/metrics/grammar/ConfigTokenizer.g4
/* * Copyright (c) 2016, Groupon, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright notice, * this list of condit...
/* * Copyright (c) 2016, Groupon, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright notice, * this list of condit...
Fix decoding bug for \x, \u and \U escapes.
Fix decoding bug for \x, \u and \U escapes.
ANTLR
bsd-3-clause
groupon/monsoon,groupon/monsoon,groupon/monsoon,groupon/monsoon
9230d0e894b2894b8af644db45f0f1cd8e8eddfc
golang/GoParser.g4
golang/GoParser.g4
parser grammar GoParser; options { tokenVocab=GoLexer; superClass=GoBaseParser; } sourceFile // : packageClause eos (importDecl eos)* (topLevelDecl eos)* : packageClause eos (importDecl eos)* ((functionDecl | methodDecl | declaration) eos)* ; packageClause : 'package' IDENTIFIER ; importD...
parser grammar GoParser; options { tokenVocab=GoLexer; superClass=GoBaseParser; } sourceFile // : packageClause eos (importDecl eos)* (topLevelDecl eos)* : packageClause eos (importDecl eos)* ((functionDecl | methodDecl | declaration) eos)* ; packageClause : 'package' IDENTIFIER ; importD...
Throw away `function` rule
Throw away `function` rule
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
fa24e75aa1b3710bf24a59006efcc21b8bf1a563
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
/*- * ========================LICENSE_START================================= * Java VTL * %% * Copyright (C) 2016 - 2017 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
/*- * ========================LICENSE_START================================= * Java VTL * %% * Copyright (C) 2016 - 2017 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
Refactor grammar
Refactor grammar
ANTLR
apache-2.0
hadrienk/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl
2ee3e0f077454f65d9e0e18225980433e25533fd
projects/batfish/src/main/antlr4/org/batfish/grammar/fortios/Fortios_common.g4
projects/batfish/src/main/antlr4/org/batfish/grammar/fortios/Fortios_common.g4
parser grammar Fortios_common; options { tokenVocab = FortiosLexer; } double_quoted_string: DOUBLE_QUOTE text = quoted_text? DOUBLE_QUOTE; single_quoted_string: SINGLE_QUOTE text = quoted_text? SINGLE_QUOTE; // 1-15 characters for interface, but 1-35 for zone interface_or_zone_name: str; quoted_text: QUOTED_TEXT...
parser grammar Fortios_common; options { tokenVocab = FortiosLexer; } double_quoted_string: DOUBLE_QUOTE text = quoted_text? DOUBLE_QUOTE; single_quoted_string: SINGLE_QUOTE text = quoted_text? SINGLE_QUOTE; // 1-15 characters for interface, but 1-35 for zone interface_or_zone_name: str; quoted_text: QUOTED_TEXT...
fix str rule (#6695)
FortiOS: fix str rule (#6695)
ANTLR
apache-2.0
batfish/batfish,arifogel/batfish,intentionet/batfish,dhalperi/batfish,intentionet/batfish,intentionet/batfish,arifogel/batfish,dhalperi/batfish,intentionet/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish,batfish/batfish,dhalperi/batfish
ce808e165f64cdd5e4de8d41589960eb08568585
newton.g4
newton.g4
grammar newton; tokens { INDENT, DEDENT } @lexer::header { import com.yuvalshavit.antlr4.DenterHelper; } @lexer::members { private final DenterHelper newtonDenter = new DenterHelper(NL, newtonParser.INDENT, newtonParser.DEDENT) { @Override public Token pullToken() { return newtonLexer.super.next...
grammar newton; tokens { INDENT, DEDENT } @lexer::header { import com.yuvalshavit.antlr4.DenterHelper; } @lexer::members { private final DenterHelper newtonDenter = new DenterHelper(NL, newtonParser.INDENT, newtonParser.DEDENT) { @Override public Token pullToken() { return newtonLexer.super.next...
rewrite grammar for data
rewrite grammar for data
ANTLR
mit
Khushmeet/newton,Khushmeet/newton
33e1dfcd953ac2774bcf25a28031ddfce6be7365
modules/lang-painless/src/main/antlr/PainlessLexer.g4
modules/lang-painless/src/main/antlr/PainlessLexer.g4
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Remove @header we no longer need
Remove @header we no longer need
ANTLR
apache-2.0
strapdata/elassandra5-rc,strapdata/elassandra5-rc,strapdata/elassandra5-rc,strapdata/elassandra5-rc,strapdata/elassandra5-rc
6ca74a503d428a31b4e712885dd28342ceb6ad1b
rfc1960/filter.g4
rfc1960/filter.g4
/* BSD License Copyright (c) 2020, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
/* BSD License Copyright (c) 2020, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
Add EOF start rule for rfc1960.
Add EOF start rule for rfc1960.
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
576eb4df9b91fa0c7a07e4a9a2fb6488bbb350fb
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; grant : GRANT ( (grantSystemPrivileges | grantObjectPrivileges) (CONTAINER EQ_OR_ASSIGN (CURRENT | ALL))? | grantRolesToPrograms ) ; grantSystemPrivileges : systemObjects TO (grante...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; grant : GRANT ( (grantSystemPrivileges | grantObjectPrivilegeClause) (CONTAINER EQ_OR_ASSIGN (CURRENT | ALL))? | grantRolesToPrograms ) ; grantSystemPrivileges : systemObjects TO (g...
add onObjectClause
add onObjectClause
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
776b27d7063c19b9ea960d6f7242615e25ee2af9
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DDLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
rename to alterClause_
rename to alterClause_
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere
1c3ec5726b41e74127563c47b4c88783fd1f181c
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
modify basic rule
modify basic rule
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
9af145d468b438c7903a19cc82ec7ecaca2d8ebb
src/main/antlr4/nl/eernie/jmoribus/Gherkins.g4
src/main/antlr4/nl/eernie/jmoribus/Gherkins.g4
grammar Gherkins; story : feature? prologue? scenario*; feature : feature_keyword feature_title feature_content ; feature_content : (NEWLINE SPACE SPACE line)* ; feature_title : line ; prologue : NEWLINE*? prologue_keyword (NEWLINE step)+; scenario : NEWLINE*? scenario_keyword scenari...
grammar Gherkins; story : feature? prologue? scenario*; feature : feature_keyword feature_title feature_content ; feature_content : (NEWLINE SPACE SPACE line)* ; feature_title : line ; prologue : NEWLINE*? prologue_keyword (NEWLINE step)+; scenario : NEWLINE*? scenario_keyword scenari...
Add more symbols
Add more symbols
ANTLR
mit
Eernie/JMoribus
b48d4c8a9e030e85e68dc8e8049fda7a95ce25f5
java8-pt/JavaParser.g4
java8-pt/JavaParser.g4
/* [The "BSD licence"] Copyright (c) 2013 Terence Parr, Sam Harwell Copyright (c) 2017 Ivan Kochurkin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain...
/* [The "BSD licence"] Copyright (c) 2013 Terence Parr, Sam Harwell Copyright (c) 2017 Ivan Kochurkin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain...
Rearrange rule in Java8PT parser grammar
Rearrange rule in Java8PT parser grammar
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
6642e66b225e97ad9dff3711ce6e16d54d9a99ee
Solidity.g4
Solidity.g4
// Copyright 2016-2017 Federico Bond <federicobond@gmail.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // ...
// Copyright 2016-2017 Federico Bond <federicobond@gmail.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // ...
Update grammar to remain close to Solidity spec
Update grammar to remain close to Solidity spec
ANTLR
mit
federicobond/solidity-antlr4,solidityj/solidity-antlr4
8422203b2d8b3c7f161af8366ceb7e5e059d951f
terraform/terraform.g4
terraform/terraform.g4
/* BSD License Copyright (c) 2020, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and t...
/* BSD License Copyright (c) 2020, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and t...
Optimize rule
Optimize rule
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
5fe5a0b8c30b47c88b04af0d0bb1737d01fb9ba1
antlr4/ANTLRv4Lexer.g4
antlr4/ANTLRv4Lexer.g4
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
Send ERRCHAR token to parser for unrecognized char. Also make WS go to parser on hidden channel not real token so we can reuse grammar outside of intellij.
Send ERRCHAR token to parser for unrecognized char. Also make WS go to parser on hidden channel not real token so we can reuse grammar outside of intellij.
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
9847d266cdb819d8c84d2c5c21c863c9a6f07daf
omni-cx2x/src/cx2x/translator/language/Claw.g4
omni-cx2x/src/cx2x/translator/language/Claw.g4
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; } /*-----------------------------------------------...
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; } /*-----------------------------------------------...
Handle loop-interchange option
Handle loop-interchange option
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
b2868de3ba21f559b69634ea7423c528431a5d89
terraform/terraform.g4
terraform/terraform.g4
/* BSD License Copyright (c) 2020, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and t...
/* BSD License Copyright (c) 2020, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and t...
Add support for multiline comments.
Add support for multiline comments. Move comments into the "hidden" channel instead of skipping them. This way they are returned to the caller.
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
dc0a2c12f9cc5fdaf1d695b18cb926dea0ef9ad1
src/main/antlr/WorkflowCatalogQueryLanguage.g4
src/main/antlr/WorkflowCatalogQueryLanguage.g4
grammar WorkflowCatalogQueryLanguage; @header { package org.ow2.proactive.workflow_catalog.rest.query.parser; } // PARSER expression : and_expression ; and_expression : or_expression (AND or_expression)* ; or_expression : clause (OR clause)* ; clause : (AttributeLiteral COMPARE_OPER...
grammar WorkflowCatalogQueryLanguage; @header { package org.ow2.proactive.workflow_catalog.rest.query.parser; } // PARSER expression : and_expression ; and_expression : or_expression (AND or_expression)* ; or_expression : clause (OR clause)* ; clause : (AttributeLiteral COMPARE_OPER...
Add aliases to clauses subterms
Add aliases to clauses subterms
ANTLR
agpl-3.0
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,lau...
0485423b0cc740b1697ba08a49edd1ab32ae04bc
src/main/antlr/BrygParser.g4
src/main/antlr/BrygParser.g4
parser grammar BrygParser; // TODO: Find a way to do: if (...) a else b options { tokenVocab = BrygLexer; } @header { package io.collap.bryg.parser; } start : (inDeclaration | NEWLINE)* (statement | NEWLINE)* EOF // EOF is needed for SLL(*) parsing! Otherwise no exception is thrown, w...
parser grammar BrygParser; // TODO: Find a way to do: if (...) a else b // TODO: Currently, a statement li -b is interpreted as a subtraction. (Before 1.0) // Parentheses give the hint to the compiler that li is a normal function call with -b as a parameter: // li (-b) // The only feasible way to fix this is /...
Update TODO.
Update TODO.
ANTLR
mit
Collap/bryg
b5f605ffb4481d16da1b0135d44d583542c51069
src/main/java/net/ossindex/version/parser/Version.g4
src/main/java/net/ossindex/version/parser/Version.g4
grammar Version; @header { } @parser::members { // From: http://stackoverflow.com/questions/29060496/allow-whitespace-sections-antlr4/29115489#29115489 /** We can enable and disable whitespace, which is required for some special * parsing rules. */ /* public void enableWs() { if (_input instanceof Multi...
grammar Version; @header { } @parser::members { // From: http://stackoverflow.com/questions/29060496/allow-whitespace-sections-antlr4/29115489#29115489 /** We can enable and disable whitespace, which is required for some special * parsing rules. */ /* public void enableWs() { if (_input instanceof Multi...
Fix paste error
Fix paste error
ANTLR
bsd-3-clause
OSSIndex/heuristic-version
108ee4a68e811caf373b42c01fa7943a71a1d981
sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
rename to createSpecification_
rename to createSpecification_
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
c222c0812214366a829b8ebccb11c84d08358e2f
CIV/Ccs/CcsLexer.g4
CIV/Ccs/CcsLexer.g4
lexer grammar CcsLexer; TERM: ';'; NIL: '0'; COMMA: ','; DIV : '/' ; DEF: '='; PAR: '|'; PREFIX: '.'; CHOICE: '+'; TAU: 'tau'; LBRACE : '{' ; RBRACE : '}' ; MUL : '*' ; SETDEF : 'set ' ; LPAREN : '(' ; RPAREN : ')' ; LBRACK : '[' ; RBRACK : ']' ; T__1 : '\\' ; COACTION: '\''[a-z][A-Za-z0-9]*; ACTION: [a-z][A-Za-z0...
lexer grammar CcsLexer; TERM: ';'; NIL: '0'; COMMA: ','; DIV : '/' ; DEF: '='; PAR: '|'; PREFIX: '.'; CHOICE: '+'; TAU: 'tau'; LBRACE : '{' ; RBRACE : '}' ; MUL : '*' ; SETDEF : 'set ' ; LPAREN : '(' ; RPAREN : ')' ; LBRACK : '[' ; RBRACK : ']' ; T__1 : '\\' ; COACTION: '\''[a-z][A-Za-z0-9]*; ACTION: [a-z][A-Za-z0...
Remove useless stuff from lever grammar
Remove useless stuff from lever grammar
ANTLR
mit
lou1306/CIV,lou1306/CIV
6aa75d77819763561e237563cfcf7e7f56f2fe07
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; systemObjects : systemObject(COMMA systemObject)* ; systemObject : ALL PRIVILEGES | roleName | systemPrivilege ; systemPrivilege : ID *? ; granteeClause : grant...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; grantSystemPrivileges : systemObjects TO (granteeClause | granteeIdentifiedBy) (WITH (ADMIN | DELEGATE) OPTION)? ; systemObjects : systemObject(COMMA systemObject)* ; systemObject : ...
add grantSystemPrivileges
add grantSystemPrivileges
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
d5ed3c519cafa621298bec0637503a68ec037d22
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
/*- * #%L * Java VTL * %% * Copyright (C) 2016 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
/*- * #%L * Java VTL * %% * Copyright (C) 2016 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
Add grammar for not and isnull operator
Add grammar for not and isnull operator
ANTLR
apache-2.0
hadrienk/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl
45f1bca134dd05046d9af2a8975779a684716a7a
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
/*- * ========================LICENSE_START================================= * Java VTL * %% * Copyright (C) 2016 - 2017 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
/*- * ========================LICENSE_START================================= * Java VTL * %% * Copyright (C) 2016 - 2017 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
Disable date_from_string token to avoid conflict
Disable date_from_string token to avoid conflict
ANTLR
apache-2.0
hadrienk/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl
922d093b02d567e79b238b154e4c69f798c04e36
STEP.g4
STEP.g4
grammar STEP; author : AnyString ; authorisation : AnyString ; collection : '(' collectionValue (',' collectionValue)* ')' | '()' ; collectionValue : RealLiteral | IntegerLiteral | StringLiteral | AnyString | Id | constructor | Undefined ; constructor : TypeRef '(' parameter? (',' parameter)* ')' ...
grammar STEP; author : AnyString ; authorisation : AnyString ; collection : '(' collectionValue (',' collectionValue)* ')' | '()' ; collectionValue : RealLiteral | IntegerLiteral | StringLiteral | AnyString | Id | constructor | Undefined ; constructor : TypeRef '(' parameter? (',' parameter)* ')' ...
Allow scientific notation without decimal.
Allow scientific notation without decimal.
ANTLR
mit
ikeough/IFC-gen,ikeough/IFC-gen,ikeough/IFC-gen
8ff41d2b022351af586295ef6c99c833c5e47df5
abnf/Abnf.g4
abnf/Abnf.g4
/* BSD License Copyright (c) 2013, Rainer Schuster All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of c...
/* BSD License Copyright (c) 2013, Rainer Schuster All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of c...
add reference to RFC errata
ABNF: add reference to RFC errata Hex digits are case-insensitive according to the errata. It is apparently a common misunderstanding that the RFC only allows upper-case hex digits.
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
79d37a756b93086490db2ebdac6ba40ad290eec7
src/Konves.ChordPro.Grammar/ChordProParser.g4
src/Konves.ChordPro.Grammar/ChordProParser.g4
parser grammar ChordProParser; options { tokenVocab=ChordProLexer; } document: (songLine | directive)* EOF ; songLine: block(WS block)* LINE_BREAK; block: chord | TEXT | word; word: syllable+; syllable: chord | TEXT | chord TEXT ; chord: OPEN_BRACKET TEXT CLOSE_BRACKET; directive: (OPEN_BRACE ( NEW_SONG | S...
parser grammar ChordProParser; options { tokenVocab=ChordProLexer; } document: (songLine | directive)* EOF ; songLine: block(WS block)* LINE_BREAK; block: chord | TEXT | word; word: syllable+; syllable: chord TEXT | chord | TEXT ; chord: OPEN_BRACKET TEXT CLOSE_BRACKET; directive: (OPEN_BRACE ( NEW_SONG | S...
Fix grammer bug
Fix grammer bug
ANTLR
apache-2.0
skonves/Konves.ChordPro
ccae2ae0ea04211caea713bfbba6f08d5ddf9847
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
add createRole
add createRole
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
037d65465cb6cc02beb50ec84ca2914acc474147
sharding-core/src/main/antlr4/imports/PostgreSQLDCLStatement.g4
sharding-core/src/main/antlr4/imports/PostgreSQLDCLStatement.g4
grammar PostgreSQLDCLStatement; import PostgreSQLKeyword, Keyword, PostgreSQLBase, BaseRule, DataType, Symbol; grant : GRANT privType columnList? (COMMA privType columnList?)* privOnClause TO roleSpecifications (WITH GRANT OPTION)? ; privType : ALL PRIVILEGES? | SELECT | INSERT | ...
grammar PostgreSQLDCLStatement; import PostgreSQLKeyword, Keyword, PostgreSQLBase, BaseRule, DataType, Symbol; grant : GRANT privType columnList? (COMMA privType columnList?)* privOnClause TO roleSpecifications (WITH GRANT OPTION)? ; privType : ALL PRIVILEGES? | SELECT | INSERT | ...
fix postgre alter user and alter role rules
fix postgre alter user and alter role rules
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
8d16101e448855f5b3873c72c14ab3d8c8d934bb
sharding-jdbc-ddl-parser/src/main/antlr4/imports/PostgreBase.g4
sharding-jdbc-ddl-parser/src/main/antlr4/imports/PostgreBase.g4
grammar PostgreBase; import PostgreKeyword, DataType, Keyword, Symbol, BaseRule; dataType: basicDataType (LEFT_BRACKET RIGHT_BRACKET)* ; basicDataType: BIGINT |INT8 |BIGSERIAL |SERIAL8 |BIT VARYING? numericPrecision? |VARBIT numericPrecision? |BOOLEAN |BOOL // |BOX |BYT...
grammar PostgreBase; import PostgreKeyword, DataType, Keyword, Symbol, BaseRule; dataType: typeName intervalFields? numericPrecision? (WITHOUT TIME ZONE | WITH TIME ZONE)? (LEFT_BRACKET RIGHT_BRACKET)* ; typeName: BIT VARYING? |CHARACTER VARYING? |DOUBLE PRECISION |ID ; numericPrecision: LEFT_PARE...
simplify dataType rule
simplify dataType rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
a05f71137ad1da4ceebb685e23758265bd167db0
sharding-core/src/main/antlr4/imports/SQLServerDCLStatement.g4
sharding-core/src/main/antlr4/imports/SQLServerDCLStatement.g4
grammar SQLServerDCLStatement; import SQLServerKeyword, DataType, Keyword, SQLServerBase, BaseRule, Symbol; grant : grantGeneral | grantDW ; grantGeneral : GRANT generalPrisOn TO ids (WITH GRANT OPTION)? (AS ID)? ; generalPrisOn : (ALL PRIVILEGES? | permissionOnColumns (COMMA permissionO...
grammar SQLServerDCLStatement; import SQLServerKeyword, DataType, Keyword, SQLServerBase, BaseRule, Symbol; grant : grantGeneral | grantDW ; grantGeneral : GRANT generalPrisOn TO ids (WITH GRANT OPTION)? (AS ID)? ; generalPrisOn : (ALL PRIVILEGES? | permissionOnColumns (COMMA permissionO...
fix sqlserver drop role rule
fix sqlserver drop role rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
a416c860f4e5706f936c59ba97d9152c9cde4964
omni-cx2x/src/cx2x/translator/language/Claw.g4
omni-cx2x/src/cx2x/translator/language/Claw.g4
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; import cx2x.translator.common.Constant; import cx2x....
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; import cx2x.translator.common.Constant; import cx2x....
Order lexer rules
Order lexer rules
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
151ce42adc7e0361e7ab1c030b38e160fa2a53b1
smiles/smiles.g4
smiles/smiles.g4
/* BSD License Copyright (c) 2017, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* BSD License Copyright (c) 2017, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
Simplify ringbond
Simplify ringbond Co-authored-by: Ivan Kochurkin <7704623aa56c2b72c3121ff876cc07e7c36aec52@gmail.com>
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
af950453625541c86c4432d677a3f546c012add9
runtime/Cpp/demo/TLexer.g4
runtime/Cpp/demo/TLexer.g4
lexer grammar TLexer; // These are all supported lexer sections: // Lexer file header. Appears at the top of h + cpp files. Use e.g. for copyrights. @lexer::header {/* lexer header section */} // Appears before any #include in h + cpp files. @lexer::preinclude {/* lexer precinclude section */} // Follows directly a...
lexer grammar TLexer; // These are all supported lexer sections: // Lexer file header. Appears at the top of h + cpp files. Use e.g. for copyrights. @lexer::header {/* lexer header section */} // Appears before any #include in h + cpp files. @lexer::preinclude {/* lexer precinclude section */} // Follows directly a...
Fix conflict lexer command in CppTarget demo
Fix conflict lexer command in CppTarget demo
ANTLR
bsd-3-clause
Pursuit92/antlr4,chandler14362/antlr4,ericvergnaud/antlr4,parrt/antlr4,antlr/antlr4,Pursuit92/antlr4,ericvergnaud/antlr4,parrt/antlr4,antlr/antlr4,ericvergnaud/antlr4,parrt/antlr4,ericvergnaud/antlr4,chandler14362/antlr4,antlr/antlr4,chandler14362/antlr4,antlr/antlr4,chandler14362/antlr4,parrt/antlr4,Pursuit92/antlr4,P...
5226427a9920159b568dbab8aac3a053326bddfb
tinybasic/tinybasic.g4
tinybasic/tinybasic.g4
/* BSD License Copyright (c) 2017, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
/* BSD License Copyright (c) 2017, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
Remove stray tokens
Remove stray tokens
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
e3c2e956f0868cf0df23ebdc5e748d889af080f4
src/grammars/org/antlr/intellij/plugin/parser/ANTLRv4Lexer.g4
src/grammars/org/antlr/intellij/plugin/parser/ANTLRv4Lexer.g4
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of s...
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of s...
Send ERRCHAR token to parser for unrecognized char. Also make WS go to parser on hidden channel not real token so we can reuse grammar outside of intellij.
Send ERRCHAR token to parser for unrecognized char. Also make WS go to parser on hidden channel not real token so we can reuse grammar outside of intellij.
ANTLR
bsd-3-clause
rojaster/intellij-plugin-v4,sharwell/intellij-plugin-v4,parrt/intellij-plugin-v4,rojaster/intellij-plugin-v4,antlr/intellij-plugin-v4,consulo/consulo-antlr4,Maccimo/intellij-plugin-v4,bjansen/intellij-plugin-v4,parrt/intellij-plugin-v4,bjansen/intellij-plugin-v4,antlr/intellij-plugin-v4,Maccimo/intellij-plugin-v4
1eb9f94ccca11a267723599ad24aa2f1b367a3f1
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
add dbUserProxyClauses
add dbUserProxyClauses
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
60eb1c0befe4e5c8fe2c496bf8799b4158f2a94f
sharding-core/src/main/antlr4/imports/SQLServerDCLStatement.g4
sharding-core/src/main/antlr4/imports/SQLServerDCLStatement.g4
grammar SQLServerDCLStatement; import SQLServerKeyword, DataType, Keyword, SQLServerBase, BaseRule, Symbol; grant : grantGeneral | grantDW ; grantGeneral : GRANT (ALL PRIVILEGES? | permissionOnColumns ( COMMA permissionOnColumns)*) (ON (ID COLON COLON)? ID)? TO ids (WITH GRANT OPTION)? (AS ID)? ...
grammar SQLServerDCLStatement; import SQLServerKeyword, DataType, Keyword, SQLServerBase, BaseRule, Symbol; grant : grantGeneral | grantDW ; grantGeneral : GRANT (ALL PRIVILEGES? | permissionOnColumns ( COMMA permissionOnColumns)*) (ON (ID COLON COLON)? ID)? TO ids (WITH GRANT OPTION)? (AS ID)? ...
add optionsList
add optionsList
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
11bbd6b7001874a324e97978fbb93e682acae3f8
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DMLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DMLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
USE numberLiterals
USE numberLiterals
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
75d96f89ab5176334884f523c370920dc124be0b
src/main/java/graafvis/grammar/GraafvisVocab.g4
src/main/java/graafvis/grammar/GraafvisVocab.g4
lexer grammar GraafvisVocab; fragment LETTER_LO: [a-z]; fragment LETTER_HI: [A-Z]; fragment DIGIT: [0-9]; ARROW: '->'; COLON: ':'; EOL: '.'; PAR_OPEN: '('; PAR_CLOSE: ')'; BRACE_OPEN: '{'; BRACE_CLOSE: '}'; BRACKET_OPEN: '['; BRACKET_CLOSE: ']'; VBAR: '|'; /* Eq operators */ EQ: '=='; NQ: '!='; GT: '>'; LT: '<'; ...
lexer grammar GraafvisVocab; fragment LETTER_LO: [a-z]; fragment LETTER_HI: [A-Z]; fragment DIGIT: [0-9]; ARROW: '->'; COLON: ':'; EOL: '.'; PAR_OPEN: '('; PAR_CLOSE: ')'; BRACE_OPEN: '{'; BRACE_CLOSE: '}'; BRACKET_OPEN: '['; BRACKET_CLOSE: ']'; VBAR: '|'; /* Eq operators */ EQ: '=='; NQ: '!='; GT: '>'; LT: '<'; ...
change in negative numbers
change in negative numbers
ANTLR
apache-2.0
meteoorkip/GraphterEffects
5fedff44cede570d6e29522407bcd1ef6129237c
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
modify simpleExpr
modify simpleExpr
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
9d8991948bb05f0be056f95aca074214a71c7fdb
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/BaseRule.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
delete privateExprOfDb
delete privateExprOfDb
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
9b22790995e219944d993f145d1d61ed31a232f6
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/DCLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/DCLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
add optionFor_
add optionFor_
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc
536b080343552786001a3c2bb9dd745f56fc9530
src/net/hillsdon/reviki/wiki/renderer/creole/parser/CreoleTokens.g4
src/net/hillsdon/reviki/wiki/renderer/creole/parser/CreoleTokens.g4
/* Todo: * - Comments justifying and explaining every rule. */ lexer grammar CreoleTokens; /* ***** Headings ***** */ HSt : LINE '='+ {getText().trim().length() <= 6}? {setText(getText().trim());} ; HEnd : ' '* '='+? ; /* ***** Lists ***** */ U1 : LINE '@'; U2 : LINE '@@' ; U3 : LINE '@@@' ; U4 : LINE '@@@@' ;...
/* Todo: * - Comments justifying and explaining every rule. */ lexer grammar CreoleTokens; /* ***** Headings ***** */ HSt : LINE '='+ WS? {getText().trim().length() <= 6}? {setText(getText().trim());} ; HEnd : ' '* '='+? ; /* ***** Lists ***** */ U1 : LINE '@'; U2 : LINE '@@' ; U3 : LINE '@@@' ; U4 : LINE '@@@...
Trim whitespace between header prefix and text
Trim whitespace between header prefix and text
ANTLR
apache-2.0
CoreFiling/reviki,strr/reviki,CoreFiling/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,ashirley/reviki,ashirley/reviki,strr/reviki
ab9e8d7f960b700eb64873ae8fa8607fdd593a4f
sharding-core/src/main/antlr4/io/shardingsphere/core/parsing/antlr/autogen/PostgreSQLStatement.g4
sharding-core/src/main/antlr4/io/shardingsphere/core/parsing/antlr/autogen/PostgreSQLStatement.g4
grammar PostgreSQLStatement; import PostgreSQLKeyword, Keyword, PostgreSQLBase, PostgreSQLCreateIndex, PostgreSQLAlterIndex , PostgreSQLDropIndex, PostgreSQLCreateTable, PostgreSQLAlterTable, PostgreSQLDropTable, PostgreSQLTruncateTable , PostgreSQLTCLStatement, PostgreSQLDCLStatement ; execute ...
grammar PostgreSQLStatement; import PostgreSQLKeyword, Keyword, PostgreSQLBase, PostgreSQLCreateIndex, PostgreSQLAlterIndex , PostgreSQLDropIndex, PostgreSQLCreateTable, PostgreSQLAlterTable, PostgreSQLDropTable, PostgreSQLTruncateTable , PostgreSQLTCLStatement, PostgreSQLDCLStatement, PostgreSQLDALState...
fix conflicts
fix conflicts
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere
24a2a4bfea3e11ce7b41feff65132f3910316d27
antlr/antlr4/ANTLRv4Lexer.g4
antlr/antlr4/ANTLRv4Lexer.g4
/* * [The "BSD license"] * Copyright (c) 2012-2015 Terence Parr * Copyright (c) 2012-2015 Sam Harwell * Copyright (c) 2015 Gerald Rosenberg * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
/* * [The "BSD license"] * Copyright (c) 2012-2015 Terence Parr * Copyright (c) 2012-2015 Sam Harwell * Copyright (c) 2015 Gerald Rosenberg * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
Update ANTLRv4Lexer.g4
Update ANTLRv4Lexer.g4
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
f91fc5cfb52a4c8f725e95df864d85500c568aa7
yang/yang-parser-impl/src/main/antlr/YangParser.g4
yang/yang-parser-impl/src/main/antlr/YangParser.g4
// // Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v1.0 which accompanies this distribution, // and is available at http://www.eclipse.org/legal/epl-v10.html // parser gramma...
// // Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v1.0 which accompanies this distribution, // and is available at http://www.eclipse.org/legal/epl-v10.html // parser gramma...
Allow empty augmentations in Yang modules.
Allow empty augmentations in Yang modules. Change-Id: I39d2ca5457461357c9834568e81e2b06608717d0 Signed-off-by: Tony Tkacik <d0658a876d3f3373fb5ecec624b553a76d54e737@cisco.com>
ANTLR
epl-1.0
opendaylight/yangtools,opendaylight/yangtools,NovusTheory/yangtools,522986491/yangtools
3dde8823f783d04b398ecaae3ea458b381352f47
projects/batfish/src/main/antlr4/org/batfish/grammar/cumulus_frr/CumulusFrrParser.g4
projects/batfish/src/main/antlr4/org/batfish/grammar/cumulus_frr/CumulusFrrParser.g4
parser grammar CumulusFrrParser; import CumulusFrr_bgp, CumulusFrr_common, CumulusFrr_interface, CumulusFrr_ip_community_list, CumulusFrr_ip_prefix_list, CumulusFrr_ospf, CumulusFrr_routemap, CumulusFrr_vrf; options { superClass = 'org.batfish.grammar.cumulus_frr.parsing.CumulusFrrBaseParser'; tokenVocab = Cumu...
parser grammar CumulusFrrParser; import CumulusFrr_bgp, CumulusFrr_common, CumulusFrr_interface, CumulusFrr_ip_community_list, CumulusFrr_ip_prefix_list, CumulusFrr_ospf, CumulusFrr_routemap, CumulusFrr_vrf; options { superClass = 'org.batfish.grammar.cumulus_frr.parsing.CumulusFrrBaseParser'; tokenVocab = Cumu...
refactor frr grammar (#5329)
refactor frr grammar (#5329) * refactor frr grammar * retain hostname structure * fix grammar bug
ANTLR
apache-2.0
arifogel/batfish,intentionet/batfish,batfish/batfish,intentionet/batfish,dhalperi/batfish,intentionet/batfish,dhalperi/batfish,dhalperi/batfish,arifogel/batfish,batfish/batfish,intentionet/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish
7c0ff19ac165a08fd3abdf5c8b2e85799f1f6c8c
src/main/antlr/info/freelibrary/edtf/internal/EDTF.g4
src/main/antlr/info/freelibrary/edtf/internal/EDTF.g4
/** * This is an Antlr4 grammar for the Extended Date Time Format (EDTF) * * It's my first experience with Antlr so I'm sure there are many many * ways that it could be improved... * * EDTF specification website: http://www.loc.gov/standards/datetime/ * * Author: Kevin S. Clarke (ksclarke@gmail.com) * Created:...
/** * This is an Antlr4 grammar for the Extended Date Time Format (EDTF) * * It's my first experience with Antlr so I'm sure there are many many * ways that it could be improved... * * EDTF specification website: http://www.loc.gov/standards/datetime/ * * Author: Kevin S. Clarke (ksclarke@gmail.com) * Created:...
split out YearWithOneOrTwoUnspecifedDigits
split out YearWithOneOrTwoUnspecifedDigits
ANTLR
bsd-2-clause
ksclarke/freelib-edtf
6c9710975f2da235a45bb0fca93ef290574a962a
scala/scala.g4
scala/scala.g4
grammar scala; literal : '-'? IntegerLiteral | '-'? FloatingPointLiteral | BooleanLiteral | CharacterLiteral | StringLiteral | SymbolLiteral | 'null' ; qualId : Id ('.' I...
/* [The "BSD licence"] Copyright (c) 2014 Leonardo Lucena All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list ...
Update scala.g4
Update scala.g4
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
1eb04d621dca8ce6e7b3fc6d6b928d3227a733a8
skatt/QL/grammar/QL4.g4
skatt/QL/grammar/QL4.g4
grammar QL4; /////////////// Parser // upper level form : structures; structures : (structure)+; structure : ( question | ifcondition '{' structures '}' (elseifcondition '{' structures '}')* (elsecondition '{' structures '}')? ); ifcondition : IF expression; elseifcondition : ELSEIF expression; elsec...
grammar QL4; /////////////// Parser // upper level form : structures; structures : structure+; structure : ( question | ifcondition '{' structures '}' (elseifcondition '{' structures '}')* (elsecondition '{' structures '}')? ); question: IDENTIFIER ':' label ':' TYPE ';' #regQuestion | IDENTIFI...
Split question into two different visits
Split question into two different visits
ANTLR
apache-2.0
software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql
8d5fcb8817cb0ce4387afbe0ce95af9eea0d5837
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DCLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DCLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
modify revoke clause
modify revoke clause
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
987f0fb15a14398a175ef4eb7b9a5a918ac7a606
yang/yang-data-impl/src/main/antlr/LeafRefPathParser.g4
yang/yang-data-impl/src/main/antlr/LeafRefPathParser.g4
parser grammar LeafRefPathParser; @header { package org.opendaylight.yangtools.yang.data.impl.leafref; } options{ tokenVocab = LeafRefPathLexer; } path_arg : absolute_path | relative_path; absolute_path : (SLASH node_identifier (path_predicate)*)+; relative_path : (DOTS SLASH)* descendant_path; descendant_path :...
parser grammar LeafRefPathParser; @header { package org.opendaylight.yangtools.yang.data.impl.leafref; } options{ tokenVocab = LeafRefPathLexer; } path_arg : absolute_path | relative_path; absolute_path : (SLASH node_identifier (path_predicate)*)+; relative_path : (DOTS SLASH)* descendant_path; descendant_path :...
Remove descendant_schema_nodeid
Remove descendant_schema_nodeid This parser rule is never references and is unused in current code base. Remove it. JIRA: YANGTOOLS-969 Change-Id: I6c4bb47fed5d7081ddaf902208a19d9b924a5900 Signed-off-by: Robert Varga <91ae5aa8c7a9f7e57b701db766e23e544aaa6ae9@pantheon.tech>
ANTLR
epl-1.0
opendaylight/yangtools,opendaylight/yangtools
eaa936546f62e7207465186b96a3045f9986ace7
sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/MySQLBase.g4
sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/MySQLBase.g4
grammar MySQLBase; import MySQLKeyword,SQLBase,Keyword,Symbol; //https://dev.mysql.com/doc/refman/8.0/en/expressions.html expr: expr OR expr | expr OR_SYM expr | expr XOR expr | expr AND expr | expr AND_SYM expr | LEFT_PAREN expr RIGHT_PAREN | NOT expr | NOT_SYM expr | booleanPrimary ; bool...
grammar MySQLBase; import MySQLKeyword,SQLBase,Keyword,Symbol; //https://dev.mysql.com/doc/refman/8.0/en/expressions.html expr: expr OR expr | expr OR_SYM expr | expr XOR expr | expr AND expr | expr AND_SYM expr | LEFT_PAREN expr RIGHT_PAREN | NOT expr | NOT_SYM expr | booleanPrimary ; bool...
add character and collate clause rule
add character and collate clause rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
9554079c8bc5135bb88e50ea68cb112b4321c99c
stix2matcher/grammars/STIXPattern.g4
stix2matcher/grammars/STIXPattern.g4
grammar STIXPattern; pattern : observationExpressions ; observationExpressions : <assoc=left> observationExpressions FOLLOWEDBY observationExpressions | observationExpressionOr ; observationExpressionOr : <assoc=left> observationExpressionOr OR observationExpressionOr | observationExpressionAnd ; o...
grammar STIXPattern; pattern : observationExpressions ; observationExpressions : <assoc=left> observationExpressions FOLLOWEDBY observationExpressions | observationExpressionOr ; observationExpressionOr : <assoc=left> observationExpressionOr OR observationExpressionOr | observationExpressionAnd ; o...
Revert the grammar file change, since it was moved to a different repo.
Revert the grammar file change, since it was moved to a different repo.
ANTLR
bsd-3-clause
chisholm/cti-pattern-matcher,oasis-open/cti-pattern-matcher
70a65d80616aace3637627c2c4f77992bc5a6cc2
src/main/antlr/mrtim/sasscompiler/grammar/Sass.g4
src/main/antlr/mrtim/sasscompiler/grammar/Sass.g4
grammar Sass; NL : '\r'? '\n' -> skip; WS : (' ' | '\t' | NL) -> skip; COMMENT: '/*' .*? '*/' -> skip; LINE_COMMENT : '//' ~[\r\n]* NL? -> skip; DSTRING : '"' ('\\"' | ~'"')* '"'; SSTRING : '\'' ('\\\'' | ~'\'')* '\''; URL : 'url(' ~[)]* ')'; COMMA : ','; SEMICOLON: ';'; LPAREN: '('; RPAREN: ')'; LBRACE: '{'; RBRACE: ...
grammar Sass; NL : '\r'? '\n' -> skip; WS : (' ' | '\t' | NL) -> skip; COMMENT: '/*' .*? '*/' -> skip; LINE_COMMENT : '//' ~[\r\n]* NL? -> skip; DSTRING : '"' ('\\"' | ~'"')* '"'; SSTRING : '\'' ('\\\'' | ~'\'')* '\''; URL : 'url(' ~[)]* ')'; COMMA : ','; SEMICOLON: ';'; LPAREN: '('; RPAREN: ')'; LBRACE: '{'; RBRACE: ...
Remove redundant space definition
Remove redundant space definition
ANTLR
mit
mr-tim/sass-compiler,mr-tim/sass-compiler
f68b3ba044d0a44bf3b9dbc80a30f31b8a1669e3
versions/draft-2/parsers/antlr4/WdlDraft2Lexer.g4
versions/draft-2/parsers/antlr4/WdlDraft2Lexer.g4
lexer grammar WdlDraft2Lexer; channels { COMMENTS } // Comments LINE_COMMENT: '#' ~[\r\n]* -> channel(COMMENTS); // Keywords IMPORT: 'import'; WORKFLOW: 'workflow'; TASK: 'task'; SCATTER: 'scatter'; CALL: 'call'; IF: 'if'; THEN: 'then'; ELSE: 'else'; ALIAS: 'alias'; AS: 'as'; In: 'in'; INPUT: 'input'; OUTPUT: 'outpu...
lexer grammar WdlDraft2Lexer; channels { COMMENTS } // Comments LINE_COMMENT: '#' ~[\r\n]* -> channel(COMMENTS); // Keywords IMPORT: 'import'; WORKFLOW: 'workflow'; TASK: 'task'; SCATTER: 'scatter'; CALL: 'call'; IF: 'if'; THEN: 'then'; ELSE: 'else'; ALIAS: 'alias'; AS: 'as'; In: 'in'; INPUT: 'input'; OUTPUT: 'outpu...
add terminal Newline
add terminal Newline
ANTLR
bsd-3-clause
openwdl/wdl,openwdl/wdl,openwdl/wdl,openwdl/wdl
fe5611db4055355dd94ffce0fdf2fcc78b5b51d9
omni-cx2x/src/cx2x/translator/language/Claw.g4
omni-cx2x/src/cx2x/translator/language/Claw.g4
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; import cx2x.translator.common.Constant; import cx2x....
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; import cx2x.translator.common.Constant; import cx2x....
Add offset() clause to surround offsets in kcache directive
Add offset() clause to surround offsets in kcache directive
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
963ce6fa5f0ffac50594b2f5f54f2839b5ebf55e
grammar/Model.g4
grammar/Model.g4
grammar Model; import Expr; // A Vensim model is a sequence of equations and subscript ranges. // This grammar assumes that the sketch section has been removed. model: ( subscriptRange | equation )+ ; // A subscript range definition names subscripts in a dimension. subscriptRange : Id ':' ( subscriptList | '(' Id '-'...
grammar Model; import Expr; // A Vensim model is a sequence of equations and subscript ranges. // This grammar assumes that the sketch section has been removed. model: ( subscriptRange | equation )+ ; // A subscript range definition names subscripts in a dimension. subscriptRange : Id ':' ( subscriptList | subscriptS...
move subscript range alternatives into separate rules so they appear as visitor methods
move subscript range alternatives into separate rules so they appear as visitor methods
ANTLR
mit
ToddFincannon/SDEverywhere,ToddFincannon/SDEverywhere,ToddFincannon/SDEverywhere,ToddFincannon/SDEverywhere,ToddFincannon/SDEverywhere
d6608b729efcaa60065056b53ed1f901736b1b58
kquery/KQuery.g4
kquery/KQuery.g4
/* [The "BSD licence"] Copyright (c) 2022 Sumit Lahiri All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
/* [The "BSD licence"] Copyright (c) 2022 Sumit Lahiri All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
Update KQuery.g4
Update KQuery.g4
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
2ec0b7a77ec300f3f8cfea48f0d4cad630dccf07
kquery/KQuery.g4
kquery/KQuery.g4
/* [The "BSD licence"] Copyright (c) 2013 Sumit Lahiri All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
/* [The "BSD licence"] Copyright (c) 2013 Sumit Lahiri All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
Update KQuery.g4
Update KQuery.g4
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
86e73295c82175c2c1f28792e2862b5b6226ae79
mumath/mumath.g4
mumath/mumath.g4
/* * MuMath originally written for Antlr3 by Dan Stanger * * Ported to Antlr4 by Tom Everett * */ grammar mumath; program : ((functionDefinition | assignment | functionDesignator) (SEMI | DOLLAR))* EOF ; assignment : (ID COLON) + expression ; list : LPAREN (RPAREN | ID (COMMA ID)* RPAREN) ; funct...
/* * MuMath originally written for Antlr3 by Dan Stanger * * Ported to Antlr4 by Tom Everett * */ grammar mumath; program : ((functionDefinition | assignment | functionDesignator) (SEMI | DOLLAR))* EOF ; assignment : (ID COLON) + expression ; list : LPAREN (RPAREN | ID (COMMA ID)* RPAREN) ; funct...
add missing token definitions for AND, NOT and MOD.
muMATH: add missing token definitions for AND, NOT and MOD.
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
18c6f277004896e1938c96e11f505073eb0cb28f
flatbuffers/FlatBuffers.g4
flatbuffers/FlatBuffers.g4
grammar FlatBuffers ; // Parser rules schema : include_* ( namespace_decl | type_decl | enum_decl | union_decl | root_decl | file_extension_decl | file_identifier_decl | attribute_decl | rpc_decl | object_ )* ; include_ : ( INCLUDE | NATIVE_INCLUDE ) STRING_CONSTANT SEMI ; namespace_decl : NAMESPACE identifier ( DO...
grammar FlatBuffers ; // Parser rules schema : include_* ( namespace_decl | type_decl | enum_decl | union_decl | root_decl | file_extension_decl | file_identifier_decl | attribute_decl | rpc_decl | object_ )* ; include_ : ( INCLUDE | NATIVE_INCLUDE ) STRING_CONSTANT SEMI ; namespace_decl : NAMESPACE identifier ( DO...
Fix file_extension and file_identifier declarations
Fix file_extension and file_identifier declarations This commit fixes parsing of `file_extension` and `file_identifier` declarations. Without semicolon expectation parser will end up prematurely upon first declaration inspection.
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
ef25a1f4a44f10f4b18c2dffa77c0be60d87e8b7
reo-compiler/src/main/antlr4/nl/cwi/reo/parse/Reo.g4
reo-compiler/src/main/antlr4/nl/cwi/reo/parse/Reo.g4
grammar Reo; /** * Generic structure */ file : includes body EOF ; incl : 'include' PATH ; body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | nodes '=' nodes # defnJoi...
grammar Reo; /** * Generic structure */ file : includes body EOF ; incl : 'include' PATH ; body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | nodes '=' nodes ...
Update Reo.g4
Update Reo.g4
ANTLR
mit
kasperdokter/Reo,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler
3ac8adbe9f135be55b395ff9b9b9102132dcf26b
pattern_grammar/STIXPattern.g4
pattern_grammar/STIXPattern.g4
// This is an ANTLR4 grammar for the STIX Patterning Language. // // http://docs.oasis-open.org/cti/stix/v2.0/stix-v2.0-part5-stix-patterning.html grammar STIXPattern; pattern : observationExpressions EOF ; observationExpressions : <assoc=left> observationExpressions FOLLOWEDBY observationExpressions | obser...
// This is an ANTLR4 grammar for the STIX Patterning Language. // // http://docs.oasis-open.org/cti/stix/v2.0/stix-v2.0-part5-stix-patterning.html grammar STIXPattern; pattern : observationExpressions EOF ; observationExpressions : <assoc=left> observationExpressions FOLLOWEDBY observationExpressions | obser...
change START STOP timestamp to TimestampLiteral
change START STOP timestamp to TimestampLiteral
ANTLR
bsd-3-clause
oasis-open/cti-stix2-json-schemas