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
fcd567afa0eb26d7ae7931142cc42deed4dd7fea
json/JSON.g4
json/JSON.g4
/** Taken from "The Definitive ANTLR 4 Reference" by Terence Parr */ // Derived from http://json.org grammar JSON; json : value ; obj : '{' pair (',' pair)* '}' | '{' '}' ; pair : STRING ':' value ; array : '[' value (',' value)* ']' | '[' ']' ; value : STRING | NUMBER | ob...
/** Taken from "The Definitive ANTLR 4 Reference" by Terence Parr */ // Derived from http://json.org grammar JSON; json : value ; obj : '{' pair (',' pair)* '}' | '{' '}' ; pair : STRING ':' value ; array : '[' value (',' value)* ']' | '[' ']' ; value : STRING | NUMBER | ob...
Remove redundant | branches in NUMBER in JSON
Remove redundant | branches in NUMBER in JSON
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
ca65ae6ee3c6ffca808a4862070d6f5838154570
webidl/WebIDL.g4
webidl/WebIDL.g4
/* BSD License Copyright (c) 2013,2015 Rainer Schuster Copyright (c) 2021 ethanmdavidson 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 copyrigh...
/* BSD License Copyright (c) 2013,2015 Rainer Schuster Copyright (c) 2021 ethanmdavidson 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 copyrigh...
add support for strings in extendedAttributes
add support for strings in extendedAttributes to support chromium idl
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
24a0d5ff0f7e97912219bc57300c4ec77ecc6809
Compiler/src/grammar/Receipt.g4
Compiler/src/grammar/Receipt.g4
/** * @author ariehfabbro, lucasdavid */ grammar Receipt; @header { import json.infrastructure.*; } receipt returns [JsonStructure e] @init { $e = new JsonStructure("receipt"); } : ( basic { $e.add($basic.e); } )+ ; basic returns [JsonElement e] : id { $e = $id.e; }...
/** * @author ariehfabbro, lucasdavid */ grammar Receipt; @header { import json.infrastructure.*; } receipt returns [JsonStructure e] @init { $e = new JsonStructure("receipt"); } : ( basic { $e.add($basic.e); } )+ ; basic returns [JsonElement e] : id { $e = $id.e; } ...
Update Receipt.g4, fix entities ambiguity
Update Receipt.g4, fix entities ambiguity
ANTLR
mit
lucasdavid/Compilers-2-assignment-2,lucasdavid/Compilers-2-assignment-2,lucasdavid/Compilers-2-assignment-2,lucasdavid/Compilers-2-assignment-2,lucasdavid/Compilers-2-assignment-2
eb5b0dffc07a3f93dd00eefb18d986430a4437fa
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 case expr
add case expr
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
bb8874aab39793b4dbaaf0f47f32855472bb1a5e
firefly-template2/src/main/java/com/firefly/template2/parser/TemplateParser.g4
firefly-template2/src/main/java/com/firefly/template2/parser/TemplateParser.g4
grammar TemplateParser; import TemplateLexer; // program program : extends? mainFunction functionDeclaration*; templateBody : (OutputString | include | selection | switch | whileLoop | forLoop | beanAccess)*; extends : EXTENDS templatePath ';'; include : INCLUDE '(' templatePath methodCall? ')'; templatePath : Ide...
grammar TemplateParser; import TemplateLexer; // program program : extends? mainFunction functionDeclaration*; templateBody : (OutputString | include | selection | switch | whileLoop | forLoop | beanAccess)*; extends : EXTENDS templatePath ';'; include : INCLUDE '(' templatePath methodCall? ')'; templatePath : Ide...
clean up code
clean up code
ANTLR
apache-2.0
hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly
2b08322b9e97a57e424a376fe831f20d918a819a
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 alter user rule
fix sqlserver alter user rule
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
46457423bf69a8ee772362e4b128b17a3daad14f
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 revoke rule
fix postgre revoke rule
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
a7117f8c431fe7b9c4b1d542d0f6585947095846
src/main/antlr/GraphqlCommon.g4
src/main/antlr/GraphqlCommon.g4
grammar GraphqlCommon; operationType : SUBSCRIPTION | MUTATION | QUERY; description : StringValue; enumValue : enumValueName ; arrayValue: '[' value* ']'; arrayValueWithVariable: '[' valueWithVariable* ']'; objectValue: '{' objectField* '}'; objectValueWithVariable: '{' objectFieldWithVariable* '}'; objectFie...
grammar GraphqlCommon; operationType : SUBSCRIPTION | MUTATION | QUERY; description : StringValue; enumValue : enumValueName ; arrayValue: '[' value* ']'; arrayValueWithVariable: '[' valueWithVariable* ']'; objectValue: '{' objectField* '}'; objectValueWithVariable: '{' objectFieldWithVariable* '}'; objectFie...
fix up a wrong grammar (didn't have any impact practically, but the grammar was still wrong itself)
fix up a wrong grammar (didn't have any impact practically, but the grammar was still wrong itself)
ANTLR
mit
graphql-java/graphql-java,graphql-java/graphql-java
a5d06b3240e6d9b120ea2931d7495abcdbeac32a
sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/mysql/MySQLDDL.g4
sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/mysql/MySQLDDL.g4
grammar MySQLDDL; import MySQLKeyword, DataType, Keyword, BaseRule, MySQLDQL, DQLBase,DDLBase,Symbol; @header{ package io.shardingsphere.parser.antlr.mysql; } createIndex: CREATE (UNIQUE | FULLTEXT | SPATIAL)? INDEX indexName indexType? ON tableName keyParts indexOption? (algorithmOption | lockOption...
grammar MySQLDDL; import MySQLKeyword, DataType, Keyword, BaseRule, MySQLDQL, DQLBase,DDLBase,Symbol; @header{ package io.shardingsphere.parser.antlr.mysql; } createIndex: CREATE (UNIQUE | FULLTEXT | SPATIAL)? INDEX indexName indexType? ON tableName keyParts indexOption? (algorithmOption | lockOption...
Optimize rule
Optimize rule
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
ea3edd3e95edadc6e04ac6f83d3453b725ee23ca
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 ; ...
allow juniper aggregate route without extra information after network
allow juniper aggregate route without extra information after network
ANTLR
apache-2.0
batfish/batfish,intentionet/batfish,batfish/batfish,arifogel/batfish,dhalperi/batfish,intentionet/batfish,batfish/batfish,intentionet/batfish,dhalperi/batfish,arifogel/batfish,arifogel/batfish,intentionet/batfish,dhalperi/batfish,intentionet/batfish
5369356ff12f345d9cd9bbd2e9289eca9060873c
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/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 ...
add generatedColumnNamesClause
add generatedColumnNamesClause
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
9e06757032c55a0e3195d91fd368fb840404e0f9
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 spaces
delete spaces
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
8e2d5ebe28573ad505fcc8f33f3579289126dd80
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 stringLiterals
modify stringLiterals
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
3f434043f06716be42237130be72eb17c8c49fcb
cmake/CMake.g4
cmake/CMake.g4
/* Copyright (c) 2018 zbq. License for use and distribution: Eclipse Public License CMake language grammar reference: https://cmake.org/cmake/help/v3.12/manual/cmake-language.7.html */ grammar CMake; file : command_invocation* EOF ; command_invocation : Identifier '(' argument* ')' ; argument : Identifier ...
/* Copyright (c) 2018 zbq. License for use and distribution: Eclipse Public License CMake language grammar reference: https://cmake.org/cmake/help/v3.12/manual/cmake-language.7.html */ grammar CMake; file : command_invocation* EOF ; command_invocation : Identifier '(' (single_argument|compound_argument)* ')' ...
Update CMake.g4
Update CMake.g4 Divide 'argument' into 'single_argument' and 'compound_argument', to make it more easily to write Listener.
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
230d378af34896e2a95835d2c1e473523fe28243
Java/examples/src/main/resources/com/yuvalshavit/antlr4/examples/benchmark/BenchGramDenting.g4
Java/examples/src/main/resources/com/yuvalshavit/antlr4/examples/benchmark/BenchGramDenting.g4
grammar BenchGramDenting; tokens { INDENT, DEDENT } @lexer::header { import com.yuvalshavit.antlr4.DenterHelper; } @lexer::members { private final DenterHelper denter = new DenterHelper(NL, BenchGramDentingParser.INDENT, BenchGramDentingParser.DEDENT) { @Override public Token pullToken() { return Ben...
grammar BenchGramDenting; tokens { INDENT, DEDENT } @lexer::header { import com.yuvalshavit.antlr4.DenterHelper; } @lexer::members { private final DenterHelper denter = new DenterHelper(NL, BenchGramDentingParser.INDENT, BenchGramDentingParser.DEDENT) { @Override public Token pullToken() { return Ben...
fix benchmark grammar, I think
fix benchmark grammar, I think Discovered while looking into bug #22. Before, I had a block as an indent, and then statements separated by newlines. Instead, I think it needs to just be a series of statements, with any one-liner statements (of which the only is `assign` having their own newline). This is because antl...
ANTLR
mit
yshavit/antlr-denter
54b8a06a47a307cf372071191198db8cf9f9181d
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
4d6754db8cb3583b8f237d47eb3e8350ee846a8a
sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/mysql/MySQLDDL.g4
sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/mysql/MySQLDDL.g4
grammar MySQLDDL; import MySQLBase,MySQLKeyword,DDLBase,SQLBase,Keyword,Symbol; @header{ package io.shardingsphere.parser.antlr.mysql; } alterSpecifications: alterSpecification (COMMA alterSpecification)* ; alterSpecification: tableOptions | ADD COLUMN? (singleColumn | multiColumn) | (ADD (INDEX|KEY) index...
grammar MySQLDDL; import MySQLBase,MySQLKeyword,DDLBase,SQLBase,Keyword,Symbol; @header{ package io.shardingsphere.parser.antlr.mysql; } createTableOptions: createTableBasic |createTableSelect |createTableLike ; createTableBasic: ; createDefinition: columnNameAndDefinition (constraintDefinition|indexD...
optimize code add create table skeleton
optimize code add create table skeleton
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
2867d44836d4d2351d49a807b17d971a2cea4cfb
presto-parser/src/main/antlr4/com/facebook/presto/type/TypeCalculation.g4
presto-parser/src/main/antlr4/com/facebook/presto/type/TypeCalculation.g4
/* * 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 required by applicable law or agreed to in writing, software * distribut...
/* * 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 required by applicable law or agreed to in writing, software * distribut...
Add explicit EOF match to TypeCalculation rule
Add explicit EOF match to TypeCalculation rule According to https://github.com/antlr/antlr4/issues/118, incorrect error message might be returned if start rule doesn't contains EOF.
ANTLR
apache-2.0
dain/presto,haozhun/presto,miniway/presto,smartnews/presto,EvilMcJerkface/presto,treasure-data/presto,Praveen2112/presto,mvp/presto,wagnermarkd/presto,svstanev/presto,haozhun/presto,jxiang/presto,erichwang/presto,youngwookim/presto,Praveen2112/presto,damiencarol/presto,hgschmie/presto,shixuan-fan/presto,treasure-data/p...
c66ca49be0752a2dcf92076aff917525d9e82130
src/main/antlr4/fr/jrds/snmpcodec/parsing/ASN.g4
src/main/antlr4/fr/jrds/snmpcodec/parsing/ASN.g4
/* [The "BSD licence"] Copyright (c) 2007-2008 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 l...
/* [The "BSD licence"] Copyright (c) 2007-2008 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 l...
Add management of some curly quotes, thanks to IEEE.
Add management of some curly quotes, thanks to IEEE.
ANTLR
apache-2.0
fbacchella/snmpcodec
81200e61cfddc18a20e1ab82a68701476fcd4d73
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; granteeClause : grantee (COMMA grantee) ; grantee : userName | roleName | PUBLIC ; granteeIdentifiedBy : userName (COMMA userName)* IDENTIFIED BY STRING (COMMA STRING)* ; ...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; systemObjects : systemObject(COMMA systemObject)* ; systemObject : ALL PRIVILEGES | roleName | systemPrivilege ; systemPrivilege : ID *? ; granteeClause : grant...
add systemObjects
add systemObjects
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc
9667246eb9c39dafd37d3bd6fe7769076af0eb14
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
apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
ad936bcf9ba0a8a43e4ebeff7fb3d0bf0868528a
scala/scala.g4
scala/scala.g4
/* [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 ...
/* [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
dae0998a87f9ab9d22610124199da3326a77bd9f
source/src/HML.g4
source/src/HML.g4
grammar HML; hybridModel : signalDeclaration* variableDeclaration* template* program EOF ; template : 'Template' ID formalParameters parStatement; formalParameters : '(' formalParameterDecls? ')' ; formalParameterDecls : type formalParameterDeclsRest ; for...
grammar HML; hybridModel : signalDeclaration* variableDeclaration* template* program EOF ; template : 'Template' ID formalParameters parStatement; formalParameters : '(' formalParameterDecls? ')' ; formalParameterDecls : type formalParameterDeclsRest ; for...
add EMPTY guard
add EMPTY guard
ANTLR
mit
fanghuixing/HML
82989741659ba8676970b063c6d5196c49077032
sharding-parser/sharding-parser-mysql/src/main/antlr4/imports/mysql/MySQLDQLStatement.g4
sharding-parser/sharding-parser-mysql/src/main/antlr4/imports/mysql/MySQLDQLStatement.g4
grammar MySQLDQLStatement; import MySQLBase, MySQLKeyword, Keyword, Symbol, BaseRule, DataType; select : unionSelect | withClause_ ; unionSelect : selectExpression (UNION ALL? selectExpression)* ; selectExpression : selectClause fromClause? whereClause? groupByClause? havingClause? windowClause...
grammar MySQLDQLStatement; import MySQLBase, MySQLKeyword, Keyword, Symbol, BaseRule, DataType; select : unionSelect | withClause_ ; unionSelect : selectExpression (UNION (ALL | DISTINCT)? selectExpression)* ; selectExpression : selectClause fromClause? whereClause? groupByClause? havingClause?...
add UNION DISTINCT
add UNION DISTINCT
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
0d00ef701aeb74a48e3c87909803be6bc2ea4ee1
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/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 ...
add onOffOption_
add onOffOption_
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
b22bb1b3bd1753ff8f223aab9dbb3642e232631b
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...
Allow multiple arguments for map creation
Allow multiple arguments for map creation
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
db9efb66bc570d6bfeb2be217eec1289f30989e5
refal/refal.g4
refal/refal.g4
/* BSD License Copyright (c) 2021, 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) 2021, 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...
Update refal/refal.g4
Update refal/refal.g4 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
defb75535fdd2c956f7184192d67aae1dea61a4d
cpp/CPP14Lexer.g4
cpp/CPP14Lexer.g4
lexer grammar CPP14Lexer; Literal: IntegerLiteral | CharacterLiteral | FloatingLiteral | StringLiteral | BooleanLiteral | PointerLiteral | UserDefinedLiteral; MultiLineMacro: '#' (~[\n]*? '\\' '\r'? '\n')+ ~ [\n]+ -> channel (HIDDEN); Directive: '#' ~ [\n]* -> channel (HIDDEN); /*Keywords*/ Alignas: 'aligna...
lexer grammar CPP14Lexer; Literal: IntegerLiteral | CharacterLiteral | FloatingLiteral | StringLiteral | BooleanLiteral | PointerLiteral | UserDefinedLiteral; MultiLineMacro: '#' (~[\n]*? '\\' '\r'? '\n')+ ~ [\n]+ -> channel (HIDDEN); Directive: '#' ~ [\n]* -> channel (HIDDEN); /*Keywords*/ Alignas: 'aligna...
Fix naming of boolean literals so that the grammar is okay for python
Fix naming of boolean literals so that the grammar is okay for python
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
411b373d315e73c0af55972b045ea14e7916c509
source/src/HML.g4
source/src/HML.g4
grammar HML; hybridModel : signalDeclaration* variableDeclaration* template* program EOF ; template : 'Template' ID formalParameters parStatement; formalParameters : '(' formalParameterDecls? ')' ; formalParameterDecls : type formalParameterDeclsRest ; for...
grammar HML; hybridModel : signalDeclaration* variableDeclaration* template* program EOF ; template : 'Template' ID formalParameters parStatement; formalParameters : '(' formalParameterDecls? ')' ; formalParameterDecls : type formalParameterDeclsRest ; for...
add expr 'xor' expr do the exclusive or logical operation
add expr 'xor' expr do the exclusive or logical operation
ANTLR
mit
fanghuixing/HML
005276306b53fd107d46f06ba8fbde69dd522520
src/main/antlr4/JmesPath.g4
src/main/antlr4/JmesPath.g4
grammar JmesPath; import JSON; query : expression EOF ; expression : expression '.' (IDENTIFIER | multi_select_list | multi_select_hash | function_expression | '*') | expression bracket_specifier | bracket_specifier | expression '||' expression | IDENTIFIER | expression '&&' expression | expression COM...
grammar JmesPath; import JSON; query : expression EOF ; expression : expression '.' (IDENTIFIER | multi_select_list | multi_select_hash | function_expression | '*') | expression bracket_specifier | bracket_specifier | expression '||' expression | IDENTIFIER | expression '&&' expression | expression COM...
Rename UNQUOTED_STRING NAME
Rename UNQUOTED_STRING NAME It makes more sense to describe what it is than say what it isn't
ANTLR
bsd-3-clause
burtcorp/jmespath-java
e2e2858ea239d29841469af4380e9d8152cfd58a
json/JSON.g4
json/JSON.g4
/** Taken from "The Definitive ANTLR 4 Reference" by Terence Parr */ // Derived from http://json.org grammar JSON; json : value ; obj : '{' pair (',' pair)* '}' | '{' '}' ; pair : STRING ':' value ; array : '[' value (',' value)* ']' | '[' ']' ; value : STRING | NUMBER | ob...
/** Taken from "The Definitive ANTLR 4 Reference" by Terence Parr */ // Derived from http://json.org grammar JSON; json : value ; obj : '{' pair (',' pair)* '}' | '{' '}' ; pair : STRING ':' value ; array : '[' value (',' value)* ']' | '[' ']' ; value : STRING | NUMBER | ob...
Remove redundant | branches in NUMBER in JSON
Remove redundant | branches in NUMBER in JSON
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
d90047cad8107c16a89bbded1d0b8f4b23ed9a05
parser/SystemRDL.g4
parser/SystemRDL.g4
/* Copyright 2009 The SPIRIT Consortium. This work forms part of a deliverable of The SPIRIT Consortium. Use of these materials are governed by the legal terms and conditions outlined in the disclaimer available from www.spiritconsortium.org. This source file is provided on an AS IS basis. The SPIRIT Consortium dis...
/* The following code is an extension of the SystemRDL 1.0 grammar provided for use by Accellera under Apache 2.0 license. See http://accellera.org/downloads/standards/systemrdl for additional info. */ grammar SystemRDL; tokens { INST_ID, PROPERTY } root : ( component_def | enum_def | explicit_component...
Update grammar file header
Update grammar file header
ANTLR
apache-2.0
robinkjoy/systemrdl-compiler,robinkjoy/systemrdl-compiler
18e55457fb1e3b0a8033e9d002da0950482d08c3
Grammar/Expression.g4
Grammar/Expression.g4
grammar Expression; expression : sign = ('-' | '+') expression | subExpresion | left = expression op = POW right = expression | left = expression op = ( MULT | DIV ) right = expression | left = expression op = ( ADD | SUB ) right = expression | function | value = ( IDENT | CONST ) ; subExpresion...
grammar Expression; expression : sign = ('-' | '+') expression | subExpresion | left = expression op = POW right = expression | left = expression op = ( MULT | DIV ) right = expression | left = expression op = ( ADD | SUB ) right = expression | function | value = ( IDENT | CONST ) ; subExpresion...
Allow numeric digits also in the identifier names.
Allow numeric digits also in the identifier names.
ANTLR
apache-2.0
GillSoftLimited/GillSoft.ExpressionEvaluator
aa3822454a86b64c7418c05a9b28d9fef52fcfdc
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
grammar DruidSQL; /* @lexer::header { package com.metamx.druid.sql.antlr; } */ /* TODO: handle both multiply / division, addition - subtraction unary minus */ @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.metamx.druid...
grammar DruidSQL; /* @lexer::header { package com.metamx.druid.sql.antlr; } */ /* TODO: handle both multiply / division, addition - subtraction unary minus */ @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.metamx.druid...
add support for 'NOT' filter and comments
add support for 'NOT' filter and comments
ANTLR
apache-2.0
noddi/druid,liquidm/druid,b-slim/druid,guobingkun/druid,lcp0578/druid,redBorder/druid,metamx/druid,himanshug/druid,winval/druid,jon-wei/druid,erikdubbelboer/druid,anupkumardixit/druid,nishantmonu51/druid,implydata/druid,cocosli/druid,cocosli/druid,knoguchi/druid,redBorder/druid,mangeshpardeshiyahoo/druid,tubemogul/drui...
3f3a288dc6a24088fc954334bb3199dfad4749bd
parser/src/main/antlr/adl_rules.g4
parser/src/main/antlr/adl_rules.g4
// // description: Antlr4 grammar for Rules sub-syntax of Archetype Definition Language (ADL2) // author: Thomas Beale <thomas.beale@openehr.org> // support: openEHR Specifications PR tracker <https://openehr.atlassian.net/projects/SPECPR/issues> // copyright: Copyright (c) 2015 openEHR Foundation // li...
// // description: Antlr4 grammar for Rules sub-syntax of Archetype Definition Language (ADL2) // author: Thomas Beale <thomas.beale@openehr.org> // support: openEHR Specifications PR tracker <https://openehr.atlassian.net/projects/SPECPR/issues> // copyright: Copyright (c) 2015 openEHR Foundation // li...
Remove TODO that has been done
Remove TODO that has been done
ANTLR
apache-2.0
nedap/archie
f40fd311990b60c51219332ad38323befdf6170c
src/main/antlr/com/github/oreissig/footran1/parser/Footran.g4
src/main/antlr/com/github/oreissig/footran1/parser/Footran.g4
grammar Footran; @header { package com.github.oreissig.footran1.parser; } @lexer::members { /** * FORTRAN-I encapsulates type information in its identifiers, but * unfortunately there are cases that require context to be certain: * IDs with 4 or more characters ending with 'F' may either denote a * non-subscripte...
grammar Footran; @header { package com.github.oreissig.footran1.parser; } @lexer::members { /** * FORTRAN-I encapsulates type information in its identifiers, but * unfortunately there are cases that require context to be certain: * IDs with 4 or more characters ending with 'F' may either denote a * non-subscripte...
use labels to identify parser rule parts
use labels to identify parser rule parts
ANTLR
isc
oreissig/FOOTRAN-I
2342af2d7f2ccff40d5e13427f7da3c5f657feb3
sharding-core/src/main/antlr4/imports/MySQLDCLStatement.g4
sharding-core/src/main/antlr4/imports/MySQLDCLStatement.g4
grammar MySQLDCLStatement; import MySQLKeyword, Keyword, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://dev.mysql.com/doc/refman/8.0/en/. */ //grant.html grantPriveleges : GRANT privType columnList? (COMMA privType columnList?)* ON objectType? privLevel TO u...
grammar MySQLDCLStatement; import MySQLKeyword, Keyword, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://dev.mysql.com/doc/refman/8.0/en/. */ //grant.html grantPriveleges : GRANT privType columnList? (COMMA privType columnList?)* ON objectType? privLevel TO u...
fix userOrRole rule
fix userOrRole rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
9c6cb7ee16cef1d423beb55f976847971984fe73
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 : FI...
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
5855f330870e644a5196eb88d063d24c11a1a28d
src/main/antlr/Nottex.g4
src/main/antlr/Nottex.g4
grammar Nottex; markupText : (functionCall | tagUse | text)+ ; functionCall : FUNCTION_MARKER name+=ALPHA(ALPHA|NUMBER)* ws LPAREN ws argumentsNode=funcArgs? ws RPAREN ; tagUse : TAG_MARKER namesNode=tagIdens ws LBRACE content=markupText? RBRACE ; tagIdens : names+=ALPH...
grammar Nottex; markupText : (functionCall | tagUse | text)+ ; functionCall : FUNCTION_MARKER name+=ALPHA(ALPHA|NUMBER)* ws LPAREN ws argumentsNode=funcArgs? ws RPAREN ; tagUse : TAG_MARKER namesNode=tagIdens ws LBRACE content=markupText? RBRACE ; tagIdens : names+=ALPH...
Update Nottex.g4
Update Nottex.g4
ANTLR
unknown
NoTTeX/nottex,map-filter-reduce/nottex,NoTTeX/nottex,map-filter-reduce/nottex
a2bd8d2f66cd1d67ac10becf6247fb5884cee3a4
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco/Cisco_common.g4
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco/Cisco_common.g4
parser grammar Cisco_common; options { tokenVocab = CiscoLexer; } access_list_action : PERMIT | DENY ; address_family_footer : ( ( EXIT_ADDRESS_FAMILY | EXIT ) NEWLINE )? ; banner : ( ( ( ESCAPE_C ~ESCAPE_C* ESCAPE_C ) | ...
parser grammar Cisco_common; options { tokenVocab = CiscoLexer; } access_list_action : PERMIT | DENY ; address_family_footer : ( ( EXIT_ADDRESS_FAMILY | EXIT ) NEWLINE )? ; banner : ( ( ( ESCAPE_C ~ESCAPE_C* ESCAPE_C ) | ...
fix snmp community parsing
fix snmp community parsing
ANTLR
apache-2.0
intentionet/batfish,arifogel/batfish,batfish/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish,intentionet/batfish,batfish/batfish,dhalperi/batfish,intentionet/batfish,dhalperi/batfish,arifogel/batfish,intentionet/batfish,dhalperi/batfish
6cdd71d445c871572eafaedff34fa7c5538b6037
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....
Make data and over clauses optional for parallelize
Make data and over clauses optional for parallelize
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
a15eb048fba461c9bfa1caebf741d6f338dbce92
src/main/antlr4/jetbrick/template/parser/grammer/JetTemplateParser.g4
src/main/antlr4/jetbrick/template/parser/grammer/JetTemplateParser.g4
/** * jetbrick-template * http://subchen.github.io/jetbrick-template/ * * Copyright 2010-2013 Guoqiang Chen. All rights reserved. * Email: subchen@gmail.com * * 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 ...
/** * jetbrick-template * http://subchen.github.io/jetbrick-template/ * * Copyright 2010-2013 Guoqiang Chen. All rights reserved. * Email: subchen@gmail.com * * 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 ...
Update to antlr 4.2 for right assoc rule change
Update to antlr 4.2 for right assoc rule change
ANTLR
apache-2.0
subchen/jetbrick-template-1x
abb49a032e4ea94f827d0394b6791e172199b436
protobuf3/Protobuf3.g4
protobuf3/Protobuf3.g4
/** * A Protocol Buffers 3 grammar for ANTLR v4. * * Derived and adapted from: * https://developers.google.com/protocol-buffers/docs/reference/proto3-spec * * @author Marco Willemart */ grammar Protobuf3; // // Proto file // proto : syntax ( importStatement | packageStatement ...
/** * A Protocol Buffers 3 grammar for ANTLR v4. * * Derived and adapted from: * https://developers.google.com/protocol-buffers/docs/reference/proto3-spec * * @author Marco Willemart */ grammar Protobuf3; // // Proto file // proto : syntax ( importStatement | packageStatement ...
Fix `range` and `type` symbol conflicts for Python 3
Fix `range` and `type` symbol conflicts for Python 3 Errors: error(134): grammars-v4/protobuf3/Protobuf3.g4:151:4: symbol range conflicts with generated code in target language or runtime error(134): grammars-v4/protobuf3/Protobuf3.g4:164:0: symbol type conflicts with generated code in target language or runtime error...
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
0481861a220a87f7db6393728b5799639fbc1c3a
antlr/antlr4/ANTLRv4Parser.g4
antlr/antlr4/ANTLRv4Parser.g4
/* * [The "BSD license"] * Copyright (c) 2012-2014 Terence Parr * Copyright (c) 2012-2014 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-2014 Terence Parr * Copyright (c) 2012-2014 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 ANTLRv4Parser.g4
Update ANTLRv4Parser.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
af7c2a5217026f040f02caec5dfac1c2ef8df0e4
dshellLexer.g4
dshellLexer.g4
lexer grammar dshellLexer; @header { package dshell.internal.parser; import dshell.internal.parser.Node; import dshell.internal.parser.ParserUtils; import dshell.internal.parser.TypeSymbol; } @members { private boolean trace = false; @Override public Token nextToken() { Token token = super.nextToken(); if(this.tra...
lexer grammar dshellLexer; @header { package dshell.internal.parser; import dshell.internal.parser.Node; import dshell.internal.parser.ParserUtils; import dshell.internal.parser.TypeSymbol; } @members { private boolean trace = false; @Override public Token nextToken() { Token token = super.nextToken(); if(this.tra...
fix line new in string
fix line new in string
ANTLR
bsd-3-clause
sekiguchi-nagisa/DShell,sekiguchi-nagisa/DShell
289af25f47bf5e00df1ef0137356db89f5e73e7d
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 ; // skip spaces, tabs, newlines
// 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
6276209ee4441c5f572da82c80f45555c28c9f6d
clu/clu.g4
clu/clu.g4
/* BSD License Copyright (c) 2018, 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 an...
/* BSD License Copyright (c) 2018, 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 an...
Rename exception to exception_ to resolve C# symbols conflict
Rename exception to exception_ to resolve C# symbols conflict
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
29fa86acadac8a3f13f67cf07d562f5a455de771
inf/inf.g4
inf/inf.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 t...
/* 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 t...
Fix bug in inf grammar.
Fix bug in inf 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
e964e66c67fba194e5dfef85043b27b451a904e0
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 ...
add defaultNullClause_
add defaultNullClause_
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
ff2dfa4c5d981ead18f6c6654cee7dbc5a0eca33
sharding-jdbc-ddl-parser/src/main/antlr4/imports/MySQLTableBase.g4
sharding-jdbc-ddl-parser/src/main/antlr4/imports/MySQLTableBase.g4
grammar MySQLTableBase; import MySQLKeyword,MySQLBase, DataType, Keyword, BaseRule, Symbol; tableOptions: tableOption (COMMA? tableOption)* ; tableOption: AUTO_INCREMENT EQ_OR_ASSIGN? NUMBER |AVG_ROW_LENGTH EQ_OR_ASSIGN? NUMBER | DEFAULT? characterSetWithEqual | CHECKSUM EQ_OR_ASSIGN? NUMBE...
grammar MySQLTableBase; import MySQLKeyword,MySQLBase, DataType, Keyword, BaseRule, Symbol; tableOptions: tableOption (COMMA? tableOption)* ; tableOption: AUTO_INCREMENT EQ_OR_ASSIGN? NUMBER |AVG_ROW_LENGTH EQ_OR_ASSIGN? NUMBER | DEFAULT? characterSetWithEqual | CHECKSUM EQ_OR_ASSIGN? NUMBE...
fix bug for sql "id int unsigned auto_increment primary key"
fix bug for sql "id int unsigned auto_increment primary key"
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc
b9d192dd25b3b6a4f5fcd2b8473a48b7fd5d484c
sharding-jdbc-ddl-parser/src/main/antlr4/imports/PostgreCreateTable.g4
sharding-jdbc-ddl-parser/src/main/antlr4/imports/PostgreCreateTable.g4
grammar PostgreCreateTable; import PostgreKeyword, DataType, Keyword, PostgreBase, BaseRule, Symbol; createTable : createTableHeader createDefinitions inheritClause? ; createTableHeader : CREATE ((GLOBAL | LOCAL)? (TEMPORARY | TEMP) | UNLOGGED)? TABLE (IF NOT EXISTS)? tableName ; createDefin...
grammar PostgreCreateTable; import PostgreKeyword, DataType, Keyword, PostgreBase, BaseRule, Symbol; createTable : createTableHeader createDefinitions inheritClause? ; createTableHeader : CREATE ((GLOBAL | LOCAL)? (TEMPORARY | TEMP) | UNLOGGED)? TABLE (IF NOT EXISTS)? tableName ; createDefin...
remove unuse rule
remove unuse rule
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
ef012efcecd765ad4cc926290556f702abdf1246
src/pymola/Modelica.g4
src/pymola/Modelica.g4
grammar Modelica; //========================================================= // B.2.1 Stored Definition - Within //========================================================= // B.2.1.1 ------------------------------------------------ stored_definition : (WITHIN component_reference? ';')? (stored_definition_c...
grammar Modelica; //========================================================= // B.2.1 Stored Definition - Within //========================================================= // B.2.1.1 ------------------------------------------------ stored_definition : (WITHIN component_reference? ';')? (stored_definition_c...
Fix ANTLR warning about recurring characters
Fix ANTLR warning about recurring characters
ANTLR
bsd-3-clause
jgoppert/pymola,jgoppert/pymola
48d661b942e002db808c062a0a47b6ae04723d0c
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; } /*-----------------------------------------------...
Add basic parser rules for options
Add basic parser rules for options
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
805356d585586cb5ffce83f42b3c5e5008223e37
src/main/antlr4/YokohamaUnitLexer.g4
src/main/antlr4/YokohamaUnitLexer.g4
lexer grammar YokohamaUnitLexer; HASH1: '#' ; HASH2: '##' ; HASH3: '###' ; HASH4: '####' ; HASH5: '#####' ; HASH6: '######' ; TEST: 'Test:' -> mode(TEST_LEADING); TABLECAPTION: '[' -> skip, mode(TABLE_NAME); SETUP: 'Setup' -> mode(PHASE_LEADING); EXERCISE: 'Exercise' -> mode(PHASE_LEADING); VERIFY: 'V...
lexer grammar YokohamaUnitLexer; HASH1: '#' ; HASH2: '##' ; HASH3: '###' ; HASH4: '####' ; HASH5: '#####' ; HASH6: '######' ; TEST: 'Test:' -> mode(TEST_LEADING); TABLECAPTION: '[' -> skip, mode(TABLE_NAME); SETUP: 'Setup' -> mode(PHASE_LEADING); EXERCISE: 'Exercise' -> mode(PHASE_LEADING); VERIFY: 'V...
Remove IN_THE_MIDDLE_OF_LINE state
Remove IN_THE_MIDDLE_OF_LINE state
ANTLR
mit
tkob/yokohamaunit,tkob/yokohamaunit
d0d7e0160e161ba5fda6392c700fb6523bce9b50
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 | pocopol | pocopol ppol; pocopol: id LPAREN paramlist RPAREN COLON ...
/* * PoCo Grammar */ parser grammar PoCoParser; options { tokenVocab=PoCoLexer; } policy: pimports macrodecls ppol | pimports ppol | macrodecls ppol | ppol; ppol: metapol | pocopol | pocopol ppol; pocopol: id LPAREN paramlist RPAREN COLON ...
Add empty pair of parentheses to the macrodecl
Add empty pair of parentheses to the macrodecl Add empty pair of parentheses to the macrodecl
ANTLR
lgpl-2.1
Corjuh/PoCo-Compiler
3610c99d2be06b714d97f7322f52a61963f12a97
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...
Move wider matching lexer rules to the bottom to avoid conflicts
KP-1944: Move wider matching lexer rules to the bottom to avoid conflicts
ANTLR
apache-2.0
statisticsnorway/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,hadrienk/java-vtl
f326285f282e8d3592489cc0e4989e0c6adf71d6
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...
add createLogin alterLogin dropLogin createRole
add createLogin alterLogin dropLogin createRole
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
412d7bb4ec4f7172011d80f6d0efa9a8d6498257
r/R.g4
r/R.g4
/* [The "BSD licence"] Copyright (c) 2013 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 of co...
/* [The "BSD licence"] Copyright (c) 2013 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 of co...
Add single dot to function definition and calls
Add single dot to function definition and calls An expression such as "function (.) x" or "myFunction(.)" Also the ';' or NL are not always necessary in an expression (it was throwing warnings on files without a terminating NL or ';')
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
8b14f8daaf8fe5e4439321ba2145fa6352f5b379
source/src/HML.g4
source/src/HML.g4
grammar HML; hybridModel : signalDeclaration* variableDeclaration* template* program EOF ; template : 'Template' ID formalParameters parStatement; formalParameters : '(' formalParameterDecls? ')' ; formalParameterDecls : type formalParameterDeclsRest ; for...
grammar HML; hybridModel : signalDeclaration* variableDeclaration* template* program EOF ; template : 'Template' ID formalParameters parStatement; formalParameters : '(' formalParameterDecls? ')' ; formalParameterDecls : type formalParameterDeclsRest ; for...
add single or multi- sending and receiving on signals
add single or multi- sending and receiving on signals
ANTLR
mit
fanghuixing/HML
df3ca1159b21181c0850fdfb1e76f160fe7a9328
toml/toml.g4
toml/toml.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 not use this f...
/* 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 not use this f...
allow nested arrays without whitespace between brackets (such as [[], []])
[TOML] allow nested arrays without whitespace between brackets (such as [[], []])
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
579101460f0a392c7e2f03a5b3a4b30178fe24eb
toml/toml.g4
toml/toml.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 not use this f...
/* 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 not use this f...
allow lowercase hex digits
[TOML] allow lowercase 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
ea70e8369e9cdef7bbc9471e685553aed3180bbb
src/parser/LemonParser.g4
src/parser/LemonParser.g4
grammar LemonParser; import LemonLexer; prog: (grammar_rule|directive)+; grammar_rule: left_side '::=' right_side; left_side: NONTERMINAL param?; right_side: ((symbol param?)+)? '.' precedence? TARGET_CODE_SECTION?; precedence: '[' TERMINAL ']'; symbol: TERMINAL|NONTERMINAL; param: '(' symbol ')'; directive : '...
grammar LemonParser; import LemonLexer; prog: (grammar_rule|directive)+; grammar_rule: left_side '::=' right_side; left_side: NONTERMINAL param?; right_side: ((symbol param?)+)? '.' precedence? TARGET_CODE_SECTION?; precedence: '[' TERMINAL ']'; symbol: TERMINAL|NONTERMINAL; param: '(' symbol ')'; directive : '...
add spaces where it is needed
style(parser): add spaces where it is needed
ANTLR
mit
melihovv/grammar_review_tool,melihovv/grammar_review_tool,melihovv/grammar_review_tool
88515ec59fc0f8f775611b7adc08caad2dcbaef2
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
grammar DruidSQL; @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.metamx.druid.query.dimension.*; import com.metamx.druid.*; import com.google.common.base.*; import com.google.common.collect.Lists; import org.joda.time.*; ...
grammar DruidSQL; @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.metamx.druid.query.dimension.*; import com.metamx.druid.*; import com.google.common.base.*; import com.google.common.collect.Lists; import org.joda.time.*; ...
add support for regex filter
add support for regex filter
ANTLR
apache-2.0
se7entyse7en/druid,friedhardware/druid,mghosh4/druid,yaochitc/druid-dev,michaelschiff/druid,guobingkun/druid,calliope7/druid,erikdubbelboer/druid,se7entyse7en/druid,mangeshpardeshiyahoo/druid,milimetric/druid,jon-wei/druid,authbox-lib/druid,mangeshpardeshiyahoo/druid,knoguchi/druid,amikey/druid,monetate/druid,zhihuij/d...
519c14139cf90aa85d76fea7e8fd296a487def47
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 req...
Add comment to the parser grammar
Add comment to the parser grammar
ANTLR
apache-2.0
hadrienk/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl
a17a90d48d8575a0034f80dd0f7b8a05ac61573d
gdscript/GDScriptParser.g4
gdscript/GDScriptParser.g4
parser grammar GDScriptParser; options { tokenVocab=GDScriptLexer; } program : (inheritance NEWLINE)? className? topLevelDecl* EOF ; inheritance : 'extends' (IDENTIFIER | STRING) ('.' IDENTIFIER)* ; className : 'class_name' IDENTIFIER (',' STRING)? NEWLINE ; topLevelDecl : classVarDe...
parser grammar GDScriptParser; options { tokenVocab=GDScriptLexer; } program : (inheritance NEWLINE)? className? topLevelDecl* EOF ; inheritance : 'extends' (IDENTIFIER | STRING) ('.' IDENTIFIER)* ; className : 'class_name' IDENTIFIER (',' STRING)? NEWLINE ; topLevelDecl : classVarDe...
simplify expression
gdscript: simplify expression
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
7c2131b91b6974de2e0165e6930b606af1c971ad
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 cx2x.translator.common.ClawConstant; import cx2x.translator.misc.Utility; } /*------------------...
/* * 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.misc.Utility; } /*------------------...
Add verbatim grammar
Add verbatim grammar
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
aaed1de5ddb944acdfcb1a117a97b11f7f333097
sharding-core/src/main/antlr4/imports/SQLServerKeyword.g4
sharding-core/src/main/antlr4/imports/SQLServerKeyword.g4
lexer grammar SQLServerKeyword; import Symbol; ABORT_AFTER_WAIT : A B O R T UL_ A F T E R UL_ W A I T ; ACTION : A C T I O N ; ALGORITHM : A L G O R I T H M ; ALLOW_PAGE_LOCKS : A L L O W UL_ P A G E UL_ L O C K S ; ALLOW_ROW_LOCKS : A L L O W UL_ R O W UL_ L O C K S ; ALL...
lexer grammar SQLServerKeyword; import Symbol; ABORT_AFTER_WAIT : A B O R T UL_ A F T E R UL_ W A I T ; ACTION : A C T I O N ; ALGORITHM : A L G O R I T H M ; ALLOW_ENCRYPTED_VALUE_MODIFICATIONS : A L L O W UL_ E N C R Y P T E D UL_ V A L U E UL_ M O D I F I C A T I O N S ; ALLOW_P...
add keyword
add keyword
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
5e62ea1dcd4b607d1ab4396fbec87a6ab1d10026
java/Dcpu.g4
java/Dcpu.g4
grammar Dcpu; program : (label | instruction | data_section)+ EOF ; label : ':' IDENTIFIER ; instruction : binary_operation | unary_operation ; data_section : '.dat' data ; data : datum (',' datum)* ; datum : STRING | IDENTIFIER | NUMBER ; binary_operat...
grammar Dcpu; program : (label | instruction | dataSection)+ EOF ; label : ':' IDENTIFIER ; instruction : binaryOperation | unaryOperation ; dataSection : '.dat' data ; data : datum (',' datum)* ; datum : STRING | IDENTIFIER | NUMBER ; binaryOperation ...
Switch ANTLR 4 grammar to use camel case rule names.
Switch ANTLR 4 grammar to use camel case rule names.
ANTLR
cc0-1.0
robertsdionne/dcpu
34d8f28b494a442b4267ce205a6846027386cc27
resources/LineGrammar.g4
resources/LineGrammar.g4
grammar LineGrammar; /* LineGrammer is a lightweight grammer for specifying a combination of melody line and harmonic context track. It uses the python module line_constructor.py as an assist to build these items, and the module line_grammar_executor as a exposed api to using this grammer to parse strings into li...
grammar LineGrammar; /* LineGrammer is a lightweight grammer for specifying a combination of melody line and harmonic context track. It uses the python module line_constructor.py as an assist to build these items, and the module line_grammar_executor as a exposed api to using this grammer to parse strings into li...
Add Italian chord to chordmodality. Fix small error in comment example [1:8->i].
Add Italian chord to chordmodality. Fix small error in comment example [1:8->i].
ANTLR
mit
dpazel/music_rep
bfc25cdd3b444798915a7c251f4b8455fa90f23a
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/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 sqlserver
adjust the sequences of statements for sqlserver
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
633e3440316a049fcb07f5a4a47c36f34404bfc3
src/main/java/net/iponweb/disthene/reader/graphite/grammar/Graphite.g4
src/main/java/net/iponweb/disthene/reader/graphite/grammar/Graphite.g4
grammar Graphite; expression: call # ExpressionCall | pathExpression # ExpressionPathExpression ; pathExpression: (pathElement DOT)* pathElement; pathElement: (partialPathElement | matchEnum)+; matchEnum: LEFT_BRACE (partialPathElement COMMA)* partialPathEle...
grammar Graphite; expression: call # ExpressionCall | pathExpression # ExpressionPathExpression ; pathExpression: (pathElement DOT)* pathElement; pathElement: (partialPathElement | matchEnum)+; matchEnum: LEFT_BRACE (partialPathElement COMMA)* partialPathEle...
fix for a case when path contains 'true' or 'false'
fix for a case when path contains 'true' or 'false'
ANTLR
mit
EinsamHauer/disthene-reader,EinsamHauer/disthene-reader,EinsamHauer/disthene-reader
3a4a28923803852a91d06b6166a9133d1f09842a
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 : body EOF ; body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | ID '=' node ; comp : ID assign? nodeset # compRefer...
grammar Reo; /** * Generic structure */ file : body EOF ; body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | nodes '=' nodes # defnJoin ; comp : ID assign? n...
Update Reo.g4
Update Reo.g4
ANTLR
mit
kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo
018853fde193b232ffeef40eeb8185d806abfc0a
sharding-core/src/main/antlr4/imports/PostgreSQLKeyword.g4
sharding-core/src/main/antlr4/imports/PostgreSQLKeyword.g4
lexer grammar PostgreSQLKeyword; import Symbol; ACTION : A C T I O N ; ARRAY : A R R A Y ; BEGIN : B E G I N ; BIT : B I T ; BRIN : B R I N ; BTREE : B T R E E ; CACHE : C A C H E ; CAST : C A S T ; CHARACTER : C H A R A C T E R ; CHA...
lexer grammar PostgreSQLKeyword; import Symbol; ACTION : A C T I O N ; ARRAY : A R R A Y ; BEGIN : B E G I N ; BIT : B I T ; BRIN : B R I N ; BTREE : B T R E E ; CACHE : C A C H E ; CAST : C A S T ; CHARACTER : C H A R A C T E R ; CHARAC...
remove common keyword
remove common keyword
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
6fbcc68909e8059ccf2c7e2d3c5a43819b518298
src/main/antlr/Scheme.g4
src/main/antlr/Scheme.g4
grammar Scheme; // Grammar rules datum : simple_datum | compound_datum ; simple_datum : BOOLEAN | NUMBER | CHARACTER | STRING | IDENTIFIER ; compound_datum : list | vector | byte_vector | abbrev...
grammar Scheme; // Parser rules datum : simpleDatum | compoundDatum ; simpleDatum : BOOLEAN | NUMBER | CHARACTER | STRING | IDENTIFIER ; compoundDatum : list | vector | byteVector | abbreviation ...
change parser rule names to camelCase
change parser rule names to camelCase
ANTLR
apache-2.0
OrangeShark/citrus-scheme
3e0567806ee094f75f856f9b60234c92305dfc24
sharding-jdbc-ddl-parser/src/main/antlr4/imports/BaseRule.g4
sharding-jdbc-ddl-parser/src/main/antlr4/imports/BaseRule.g4
//rule in this file does not allow override grammar BaseRule; import DataType,Keyword,Symbol; schemaName: ID; tableName: ID; columnName: ID; tablespaceName: ID; collationName: ID; indexName: ID; alias: ID; cteName:ID; idList: LEFT_PAREN ID (COMMA ID)* RIGHT_PAREN ; rangeClause: NUMBER (COMMA NUMBER)*...
//rule in this file does not allow override grammar BaseRule; import DataType,Keyword,Symbol; schemaName: ID; tableName: ID; columnName: ID; tablespaceName: ID; collationName: ID; indexName: ID; alias: ID; cteName:ID; fileGroup:ID; groupName:ID; constraintName:ID; keyName:ID; typeName:ID; xmlSchemaCollection:ID;...
add sqlserver base rule
add sqlserver base 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
b70c4c9c033b7a402736d19b1e9f1fd3bd535d5f
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_nxos/CiscoNxos_line.g4
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_nxos/CiscoNxos_line.g4
parser grammar CiscoNxos_line; import CiscoNxos_common; options { tokenVocab = CiscoNxosLexer; } line_timeout : // 0-525600, in minutes, 0 to disable uint32 ; s_line : LINE ( line_console | line_vty )* ; line_console : CONSOLE NEWLINE lc_exec_timeout ; lc_exec_timeout : EXEC_TIMEOUT mins =...
parser grammar CiscoNxos_line; import CiscoNxos_common; options { tokenVocab = CiscoNxosLexer; } line_timeout : // 0-525600, in minutes, 0 to disable uint32 ; s_line : LINE ( line_console | line_vty ) ; line_console : CONSOLE NEWLINE lc_exec_timeout ; lc_exec_timeout : EXEC_TIMEOUT mins = ...
remove errant star in grammar (#4705)
NX-OS: remove errant star in grammar (#4705)
ANTLR
apache-2.0
dhalperi/batfish,intentionet/batfish,batfish/batfish,arifogel/batfish,intentionet/batfish,dhalperi/batfish,batfish/batfish,intentionet/batfish,arifogel/batfish,dhalperi/batfish,batfish/batfish,intentionet/batfish,intentionet/batfish,arifogel/batfish
50080cf9c19e8aa023e74317bd48c90fb6ec4096
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 : body EOF ; body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | nodes '=' nodes # defnJoin ; comp : ID assign? n...
grammar Reo; /** * Generic structure */ file : body EOF ; body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | nodes '=' nodes # defnJoin ; comp : ID assign? n...
Update Reo.g4
Update Reo.g4
ANTLR
mit
kasperdokter/Reo,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler
a988ceedab3163bd8fa5e03446144f7184ff6a3e
promql/PromQLParser.g4
promql/PromQLParser.g4
/* [The "BSD licence"] Copyright (c) 2013 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 of co...
/* [The "BSD licence"] Copyright (c) 2013 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 of co...
Update PromQLParser.g4
Update PromQLParser.g4 "parameter" should be literal or vectorOperation instead of just vector
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
96dbd15d265a3cf1fa432881aca850814953ec7f
projects/batfish/src/batfish/grammar/cisco/Cisco_bgp.g4
projects/batfish/src/batfish/grammar/cisco/Cisco_bgp.g4
parser grammar Cisco_bgp; import Cisco_common; options { tokenVocab = CiscoLexer; } activate_bgp_tail : ACTIVATE NEWLINE ; address_family_header : ADDRESS_FAMILY ( ( IPV4 MDT? ) | IPV6 | VPNV4 | VPNV6 ) ( UNICAST | MULTICAST )? ( VRF v...
parser grammar Cisco_bgp; import Cisco_common; options { tokenVocab = CiscoLexer; } activate_bgp_tail : ACTIVATE NEWLINE ; address_family_header : ADDRESS_FAMILY ( ( IPV4 MDT? ) | IPV6 | VPNV4 | VPNV6 ) ( UNICAST | MULTICAST )? ( VRF v...
fix issue where parser could not distinguish whether address family belongs to template/neighbor or to top level
cisco: fix issue where parser could not distinguish whether address family belongs to template/neighbor or to top level
ANTLR
apache-2.0
arifogel/batfish,intentionet/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish,batfish/batfish,intentionet/batfish,intentionet/batfish,intentionet/batfish,dhalperi/batfish,batfish/batfish,arifogel/batfish,dhalperi/batfish,dhalperi/batfish
0c1b1d09fd1ec3f603aad655daf9ec7f16700acf
python/tiny-python/tiny-grammar-with-actions/Python3.g4
python/tiny-python/tiny-grammar-with-actions/Python3.g4
/* * The MIT License (MIT) * * Copyright (c) 2014 Bart Kiers * Copyright (c) 2019 Robert Einhorn * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, inc...
/* * The MIT License (MIT) * * Copyright (c) 2014 Bart Kiers * Copyright (c) 2019 Robert Einhorn * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, inc...
Update Python3.g4
Update Python3.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
b25fdbceb739b2c4bcef6b586a10b99570be747a
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 createUser3
add createUser3
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
23c08a36d48fc77092ba807f1728c354b3242f8f
cool/COOL.g4
cool/COOL.g4
/* The MIT License (MIT) Copyright (c) 2017 Linonetwo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
/* The MIT License (MIT) Copyright (c) 2017 Linonetwo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
clear name and label
chore: clear name and label
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
427878689d40c9210f19ed4bc035dbd8c5bc8c8d
webidl/WebIDL.g4
webidl/WebIDL.g4
/* BSD License Copyright (c) 2013,2015 Rainer Schuster Copyright (c) 2021 ethanmdavidson 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 copyrigh...
/* BSD License Copyright (c) 2013,2015 Rainer Schuster Copyright (c) 2021 ethanmdavidson 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 copyrigh...
rename 'namespace' to 'namespace_'
rename 'namespace' to 'namespace_' iiuc this is for compatibility with CPP target
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
10109e2d16501d7c50ec0392701b7bce98accd48
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 ...
modify sequence of rules
modify sequence of rules
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
d12be450525bf99be5dbd2a106df35ce73a99e23
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 alterUser
add alterUser
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
736eab92a9bed33f6427af212729284b48555731
projects/batfish/src/org/batfish/grammar/mrv/MrvLexer.g4
projects/batfish/src/org/batfish/grammar/mrv/MrvLexer.g4
lexer grammar MrvLexer; options { superClass = 'org.batfish.grammar.BatfishLexer'; } @header { package org.batfish.grammar.mrv; } tokens { QUOTED_TEXT } // Mrv Keywords ASYNC : 'Async' ; AUTOHANG : 'AutoHang' ; BOOL : 'BOOL' ; IFNAME : 'ifName' ; INTERFACE : 'Interface' ; SYSTEM : 'Sys...
lexer grammar MrvLexer; options { superClass = 'org.batfish.grammar.BatfishLexer'; } @header { package org.batfish.grammar.mrv; } tokens { QUOTED_TEXT } // Mrv Keywords ASYNC : 'Async' ; AUTOHANG : 'AutoHang' ; BOOL : 'BOOL' ; IFNAME : 'ifName' ; INTERFACE : 'Interface' ; SYSTEM : 'Sys...
fix mrv comment lexing
fix mrv comment lexing
ANTLR
apache-2.0
intentionet/batfish,arifogel/batfish,intentionet/batfish,intentionet/batfish,arifogel/batfish,batfish/batfish,arifogel/batfish,batfish/batfish,dhalperi/batfish,dhalperi/batfish,batfish/batfish,dhalperi/batfish,intentionet/batfish,intentionet/batfish
daf13b3427cad8642baf278e7e29f101a3ef782f
robozonky-strategy-natural/src/main/antlr4/imports/Tokens.g4
robozonky-strategy-natural/src/main/antlr4/imports/Tokens.g4
grammar Tokens; @header { import java.lang.String; import java.math.BigDecimal; import java.math.BigInteger; import java.util.Collection; import java.util.LinkedHashSet; import com.github.triceo.robozonky.api.remote.enums.*; import com.github.triceo.robozonky.api.remote.entities.*; impo...
grammar Tokens; @header { import java.lang.String; import java.math.BigDecimal; import java.math.BigInteger; import java.util.Collection; import java.util.LinkedHashSet; import com.github.triceo.robozonky.api.remote.enums.*; import com.github.triceo.robozonky.api.remote.entities.*; impo...
Fix tests in strategy
Fix tests in strategy
ANTLR
apache-2.0
triceo/robozonky,triceo/robozonky,triceo/zonkybot,RoboZonky/robozonky,RoboZonky/robozonky,triceo/zonkybot
57decba514388da625413177d425d0ccc961a391
grammars/Dent.g4
grammars/Dent.g4
/* * Dent.g4 * https://github.com/wevrem/wren * Author: Mike Weaver */ /* * The MIT License * * Copyright (c) 2017 Mike Weaver * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without r...
/* * Dent.g4 * https://github.com/wevrem/wren * Author: Mike Weaver */ /* * The MIT License * * Copyright (c) 2017 Mike Weaver * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without r...
set start/stop/line on generated tokens
set start/stop/line on generated tokens Keep track of an `initialIndentToken` so it can be used to set the correct startIndex, stopIndex, line, and charPositionInLine on the generated INDENT, DEDENT, and NEWLINE tokens. Tweaked the `LEGIT` token so it grabs internal whitespace. That is so my tokens and trees are simp...
ANTLR
mit
wevrem/wry
185f4eee287212326fb5133f345ab231830e016d
javascript/JavaScriptParser.g4
javascript/JavaScriptParser.g4
/* * The MIT License (MIT) * * Copyright (c) 2014 by Bart Kiers (original author) and Alexandre Vitorelli (contributor -> ported to CSharp) * Copyright (c) 2017 by Ivan Kochurkin (Positive Technologies): added ECMAScript 6 support, cleared and transformed to the universal grammar. * Copyright (c) 2018 by Juan ...
/* * The MIT License (MIT) * * Copyright (c) 2014 by Bart Kiers (original author) and Alexandre Vitorelli (contributor -> ported to CSharp) * Copyright (c) 2017 by Ivan Kochurkin (Positive Technologies): added ECMAScript 6 support, cleared and transformed to the universal grammar. * Copyright (c) 2018 by Juan ...
simplify importFromBlock and iterationStatement
js: simplify importFromBlock and iterationStatement
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
545272844b3a79e064bf6ad4ca9dbdbb2d080412
projects/batfish/src/org/batfish/grammar/cisco/Cisco_common.g4
projects/batfish/src/org/batfish/grammar/cisco/Cisco_common.g4
parser grammar Cisco_common; options { tokenVocab = CiscoLexer; } access_list_action : PERMIT | DENY ; address_family_footer : ( ( EXIT_ADDRESS_FAMILY | EXIT ) NEWLINE )? ; as_path_set_elem : IOS_REGEX SINGLE_QUOTE ~SINGLE_QUOTE* SINGLE_QUOTE ; banner : ( ( ...
parser grammar Cisco_common; options { tokenVocab = CiscoLexer; } access_list_action : PERMIT | DENY ; address_family_footer : ( ( EXIT_ADDRESS_FAMILY | EXIT ) NEWLINE )? ; as_path_set_elem : IOS_REGEX SINGLE_QUOTE ~SINGLE_QUOTE* SINGLE_QUOTE ; banner : ( ( ...
remove unused rule
remove unused rule
ANTLR
apache-2.0
dhalperi/batfish,dhalperi/batfish,intentionet/batfish,arifogel/batfish,batfish/batfish,intentionet/batfish,batfish/batfish,dhalperi/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish,intentionet/batfish,arifogel/batfish,intentionet/batfish
e1c8813b26fdc96dd65fed3e0c5422bcd33b0eb2
src/main/antlr4/com/abusalimov/mrcalc/parse/impl/antlr/Calc.g4
src/main/antlr4/com/abusalimov/mrcalc/parse/impl/antlr/Calc.g4
grammar Calc; program: STMT_DELIM? stmt (STMT_DELIM stmt)* STMT_DELIM? EOF ; stmt : 'var' name=ID '=' expr # varDefStmt | ('print')? expr # printStmt ; expr : number # numberExpr | '{' start=expr ',' end=expr '}' # rangeExpr | name=ID ...
grammar Calc; program: (STMT_DELIM* stmt (STMT_DELIM+ stmt)*)? STMT_DELIM* EOF ; stmt : 'var' name=ID '=' expr # varDefStmt | ('print')? expr # printStmt ; expr : number # numberExpr | '{' start=expr ',' end=expr '}' # rangeExpr | name=ID ...
Make STMT_DELIM a single char and allow empty program
grammar: Make STMT_DELIM a single char and allow empty program This makes syntax error diagnostics more sane. squash! grammar: Make STMT_DELIM a single char
ANTLR
mit
abusalimov/mrcalc
ea72d6997f7725ff7b64e1bc0d8b8b4baa9a4ad3
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 ...
change sequences of rules
change sequences of rules
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
782a89cf80d933bed364fa8125923e72342229f7
webidl/WebIDL.g4
webidl/WebIDL.g4
/* BSD License Copyright (c) 2013,2015 Rainer Schuster Copyright (c) 2021 ethanmdavidson 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 copyrigh...
/* BSD License Copyright (c) 2013,2015 Rainer Schuster Copyright (c) 2021 ethanmdavidson 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 copyrigh...
use more restrictive syntax for extendedAttribute
use more restrictive syntax for extendedAttribute
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
4721ce446c85a5bcc17473e0354471afea5ddb4b
T.g4
T.g4
grammar T; documentSymbol : headerSymbol definitionSymbol* ; headerSymbol : packageSymbol importSymbol* ; importSymbol : 'import' name=IDENTIFIER ';' ; packageSymbol : comment=DOCCOMMENT? 'package' name=IDENTIFIER ';' ; definitionSymbol : serviceSymbol | structSymbol | e...
grammar T; documentSymbol : headerSymbol definitionSymbol* ; /** package name; import name; */ headerSymbol : packageSymbol importSymbol* ; importSymbol : 'import' name=IDENTIFIER ';' ; packageSymbol : comment=DOCCOMMENT? 'package' name=IDENTIFIER ';' ; definitionSymbol : servi...
Support for flags (e.g. same as enum)
Support for flags (e.g. same as enum)
ANTLR
mit
Pelagicore/qface,Gagi2k/qface
4571fc694d4a68177caa96f6c5457b316c7e1cc0
sharding-core/src/main/antlr4/imports/PostgreSQLDALStatement.g4
sharding-core/src/main/antlr4/imports/PostgreSQLDALStatement.g4
grammar PostgreSQLDALStatement; import PostgreSQLKeyword, Keyword, BaseRule, DataType, Symbol; show : SHOW (ALL | ID) ; setParam : SET scope? setClause ; scope : SESSION | LOCAL ; setClause : TIME ZONE timeZoneType | ID (TO | EQ_) (STRING | DEFAULT) ; timeZoneType : NUM...
grammar PostgreSQLDALStatement; import PostgreSQLKeyword, Keyword, BaseRule, DataType, Symbol; show : SHOW (ALL | ID) ; setParam : SET scope? setClause ; scope : SESSION | LOCAL ; setClause : TIME ZONE timeZoneType | ID (TO | EQ_) (STRING | DEFAULT) ; timeZoneType : NUM...
modify antlr grammar file format
modify antlr grammar file format
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc
a3fc4a023ba33c8792ad3a98ac1801dee1905750
antlr/src/main/resources/org/minijs/parser/antlr/JavaScript.g4
antlr/src/main/resources/org/minijs/parser/antlr/JavaScript.g4
/** * This comes as part of minijs project https://github.com/frankdu/minijs * * * 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 * * ...
/** * This comes as part of minijs project https://github.com/frankdu/minijs * * * 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 * * ...
Sort reserved keywords alphabetically
Sort reserved keywords alphabetically
ANTLR
apache-2.0
frankdu/minijs
dd65fa4e5302d190b8028fa5855a4681d2b1c651
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 ...
adjust the sequences of statements for mysql
adjust the sequences of statements for mysql
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc
323e4a99aa693d057a413dde99469e4c70aa8916
csv/CSV.g4
csv/CSV.g4
/* [The "BSD licence"] Copyright (c) 2013 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 of co...
/* [The "BSD licence"] Copyright (c) 2013 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 of co...
Fix CSV generation error for python runtime
Fix CSV generation error for python runtime When generating parser/lexer for python runtime, an error is raised: `error(134): CSV.g4:31:0: symbol file conflicts with generated code in target language or runtime`. Changing `file` to `csvFile` fix it.
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
1f7a65d74a2d6e1dc0a82e6bfa9b45b86b768d40
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 Removed project specific namespaces
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
6691a4bd23d5d42f9a354cb85d2d4c67221ba2d0
antlr/src/main/resources/org/minijs/parser/antlr/JavaScript.g4
antlr/src/main/resources/org/minijs/parser/antlr/JavaScript.g4
grammar JavaScript; @header { } program : statement+ ; variableDeclarators : 'var'? variableDeclarator (COMMA variableDeclarator)* ; variableDeclarator : IDENTIFIER ('=' variableInitializer)? ; variableInitializer : expression ; statement : SEMI | 'break' ...
grammar JavaScript; @header { } program : statement+ ; variableDeclarators : 'var'? variableDeclarator (',' variableDeclarator)* ; variableDeclarator : IDENTIFIER ('=' variableInitializer)? ; variableInitializer : expression ; statement : 'break' ';'? ...
Add empty statement, and fix if/for grammar rules, and name sub statement rules
Add empty statement, and fix if/for grammar rules, and name sub statement rules
ANTLR
apache-2.0
frankdu/minijs