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 |
|---|---|---|---|---|---|---|---|---|---|
a8fd4db66a3b2b06e47709d3da63cab710d23b0b | trans/src/wich/parser/Wich.g4 | trans/src/wich/parser/Wich.g4 | /*
The MIT License (MIT)
Copyright (c) 2015 Terence Parr, Hanzhou Shi, Shuai Yuan, Yuanyuan Zhang
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 MIT License (MIT)
Copyright (c) 2015 Terence Parr, Hanzhou Shi, Shuai Yuan, Yuanyuan Zhang
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... | add token type labels to parser | add token type labels to parser
| ANTLR | mit | YuanyuanZh/wich-c,syuanivy/wich-c,hanjoes/wich-c,langwich/wich-c,hanjoes/wich-c,syuanivy/wich-c,langwich/wich-c,YuanyuanZh/wich-c |
30ad4f2198906d5d7f6028e93cffc02327bac79a | 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 createUser4 | add createUser4
| 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 |
0f084b63aed473f63e39dd7b3fb8a88f9250f549 | vrj.g4 | vrj.g4 | grammar vrj;
init:
( typeDefinition
| nativeDefinition
| globalDefinition
| functionDefinition
| libraryDefinition
| structDefinition
| NL
)*
EOF
;
visibility: 'private' | 'public';
member: variableExpression | functionExpression;
memberExpression: member ('.' member)+;
name... | /**
* MIT License
*
* Copyright (c) 2017 Franco Montenegro
*
* 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, cop... | Clean grammar and add MIT licence header | Clean grammar and add MIT licence header
| ANTLR | mit | Ruk33/vrJASS2 |
ee85463c9aebba3ebc4a734d52cb0399c070dae0 | mysql/MySQL.g4 | mysql/MySQL.g4 | grammar MySQL;
options {
tokenVocab=MySQLBase;
}
@header {
}
stat:
select_clause+
;
schema_name:
ID
;
select_clause:
SELECT
column_list_clause
(FROM table_references)?
(where_clause)?
;
table_name:
ID
;
table_alias:
ID
;
column_name:
((schema_name DOT)? ID DOT)? ID (column_n... | grammar MySQL;
options {
tokenVocab=MySQLBase;
}
@header {
package jp.co.future.parser.antlr4.mysql;
}
stat:
select_clause+
;
schema_name:
ID
;
select_clause:
SELECT
column_list_clause
(FROM table_references)?
(where_clause)?
;
table_name:
ID
;
table_alias:
ID
;
column_name:
... | add join clause | add join clause
| 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 |
813a73c31042a4db29c1e3fdf01e187b87ab9303 | metamath/metamath.g4 | metamath/metamath.g4 | /*
BSD License
Copyright (c) 2020, Tom Everett
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and t... | /*
BSD License
Copyright (c) 2020, Tom Everett
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and t... | Add EOF start rule for metamath. Fix overlapping PRINTABLECHARACTER and LABEL. | Add EOF start rule for metamath. Fix overlapping PRINTABLECHARACTER 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 |
40d4c68d68c420e754a19290d8a7164ce8003f53 | parser/gen/CEL.g4 | parser/gen/CEL.g4 | // Copyright 2018 Google LLC
//
// 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 ... | // Copyright 2018 Google LLC
//
// 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 ... | Add missing lexer rule for 'in' (#260) | Add missing lexer rule for 'in' (#260)
| ANTLR | apache-2.0 | google/cel-go,google/cel-go |
80ba2b530576b2305179ec1fed3d7b3cf50c09c9 | pattern_grammar/STIXPattern.g4 | pattern_grammar/STIXPattern.g4 | // This is an ANTLR4 grammar for the STIX Patterning Language.
//
// http://docs.oasis-open.org/cti/stix/v2.0/stix-v2.0-part5-stix-patterning.html
grammar STIXPattern;
pattern
: observationExpressions EOF
;
observationExpressions
: <assoc=left> observationExpressions FOLLOWEDBY observationExpressions
| obser... | // This is an ANTLR4 grammar for the STIX Patterning Language.
//
// https://docs.oasis-open.org/cti/stix/v2.1/os/stix-v2.1-os.html#_e8slinrhxcc9
grammar STIXPattern;
pattern
: observationExpressions EOF
;
observationExpressions
: <assoc=left> observationExpressions FOLLOWEDBY observationExpressions
| observ... | Update link to STIX Patterning documentation | Update link to STIX Patterning documentation | ANTLR | bsd-3-clause | oasis-open/cti-stix2-json-schemas |
d1c59c3c120725680ee643c3b1ee144c92276018 | css3/css3.g4 | css3/css3.g4 | grammar css3;
stylesheet
: importRule* (nested | ruleset)+
;
import_css
: ('@import' | '@include') (STRING|URI) ';'?
;
nested
: '@' nest '{' properties? nested* '}'
;
nest
: IDENT IDENT* pseudo*
;
ruleset
: selectors '{' properties? '}'
;
selectors
: selector (',' selector)*
;
selector
:... | grammar css3;
stylesheet
: importRule* (nested | ruleset)+
;
importRule
: ('@import' | '@include') (STRING|URI) ';'?
;
nested
: '@' nest '{' properties? nested* '}'
;
nest
: IDENT IDENT* pseudo*
;
ruleset
: selectors '{' properties? '}'
;
selectors
: selector (',' selector)*
;
selector
:... | Update css3.g4 | Update css3.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 |
7e243534f5398a9d6b59c8100bff21a80d2af94c | sharding-core/src/main/antlr4/imports/OracleKeyword.g4 | sharding-core/src/main/antlr4/imports/OracleKeyword.g4 | lexer grammar OracleKeyword;
import Symbol;
ADMIN
: A D M I N
;
AT
: A T
;
BATCH
: B A T C H
;
BITMAP
: B I T M A P
;
CACHE
: C A C H E
;
CASE
: C A S E
;
CHECKPOINT
: C H E C K P O I N T
;
COMMENT
: C O M M E N T
;
CONSTRAINTS
: C O N S T... | lexer grammar OracleKeyword;
import Symbol;
ADMIN
: A D M I N
;
AT
: A T
;
BATCH
: B A T C H
;
BITMAP
: B I T M A P
;
CACHE
: C A C H E
;
CASE
: C A S E
;
CHECKPOINT
: C H E C K P O I N T
;
COMMENT
: C O M M E N T
;
CONSTRAINTS
: C O N S T... | add keyword | add keyword
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc |
6cb215d9bddf89619cb2980a492af610fdf4f47c | sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/MySQLKeyword.g4 | sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/MySQLKeyword.g4 | lexer grammar MySQLKeyword;
import Symbol;
FIRST: F I R S T;
AFTER: A F T E R;
SPATIAL: S P A T I A L;
ALGORITHM: A L G O R I T H M;
CHANGE: C H A N G E;
DISCARD: D I S C A R D;
CHARACTER: C H A R A C T E R;
COLLATE: C O L L A T E;
CONVERT: C O N V E R T;
SHARED: S H A R E D;
EXCLUSIVE: E X C L U S I V E;
REORGANI... | lexer grammar MySQLKeyword;
import Symbol;
FIRST: F I R S T;
AFTER: A F T E R;
SPATIAL: S P A T I A L;
ALGORITHM: A L G O R I T H M;
CHANGE: C H A N G E;
DISCARD: D I S C A R D;
CHARACTER: C H A R A C T E R;
COLLATE: C O L L A T E;
CONVERT: C O N V E R T;
SHARED: S H A R E D;
EXCLUSIVE: E X C L U S I V E;
REORGANI... | add mysql keyword | add mysql keyword
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere |
a49f29822fa170efb6ec0c5069123e3fe0cb192e | 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* '}';
objectFiel... | grammar GraphqlCommon;
operationType : SUBSCRIPTION | MUTATION | QUERY;
description : stringValue;
enumValue : enumValueName ;
arrayValue: '[' value* ']';
arrayValueWithVariable: '[' valueWithVariable* ']';
objectValue: '{' objectField* '}';
objectValueWithVariable: '{' objectFieldWithVariable* '}';
objectFiel... | fix typo | fix typo
| ANTLR | mit | graphql-java/graphql-java,graphql-java/graphql-java |
b20fb4c4872d4f8981164fe70b2ea54ebec676c3 | sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DCLStatement.g4 | sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DCLStatement.g4 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | modify dcl for oracle | modify dcl for oracle
| 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 |
bc859c6c9101c348704a60780020d6927106e4e4 | sparkle-V4/sparkle-pretty-printer/src/main/antlr4/com/googlecode/sparkleg/SparqlParser.g4 | sparkle-V4/sparkle-pretty-printer/src/main/antlr4/com/googlecode/sparkleg/SparqlParser.g4 | /*
* Copyright 2007-2012 The sparkle-g Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | /*
* Copyright 2007-2012 The sparkle-g Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Allow empty queries. Allow queries with just a prologue part. | Allow empty queries.
Allow queries with just a prologue part. | ANTLR | apache-2.0 | vnadgir-ft/sparkle-g |
22b693f9de8a858a8d491c756a607bfa3f28988e | shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/BaseRule.g4 | shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/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 ... | Correct Oracle unreservedWord (#10018) | Correct Oracle unreservedWord (#10018)
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere |
b4cf05f91cf8b533943f4f9afd6e118a4c454531 | java-vtl-parser/src/main/antlr4/imports/Relational.g4 | java-vtl-parser/src/main/antlr4/imports/Relational.g4 | grammar Relational;
relationalExpression : unionExpression | joinExpression ;
unionExpression : 'union' '(' datasetExpression (',' datasetExpression )* ')' ;
joinExpression : '[' joinDefinition ']' '{' joinBody '}';
joinDefinition : INNER? joinParam #joinDefinitionInner
| OUTER joinParam #joinDefi... | grammar Relational;
relationalExpression : unionExpression | joinExpression ;
unionExpression : 'union' '(' datasetExpression (',' datasetExpression )* ')' ;
joinExpression : '[' joinDefinition ']' '{' joinBody '}';
joinDefinition : INNER? joinParam #joinDefinitionInner
| OUTER joinParam #joinDefi... | Add the keep and drop join clauses | Add the keep and drop join clauses
| ANTLR | apache-2.0 | hadrienk/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl |
b0036b0f4df26816dd4b764b5c90728e4fbff6a8 | expr/src/main/antlr4/org/teavm/flavour/expr/antlr/Expr.g4 | expr/src/main/antlr4/org/teavm/flavour/expr/antlr/Expr.g4 | grammar Expr;
NUMBER : INT_NUMBER | FRAC_NUMBER ;
fragment INT_NUMBER : '0' | '1'..'9' ('0'..'9')* ;
fragment FRAC_NUMBER : INT_NUMBER '.' DIGITS EXPONENT? | INT_NUMBER EXPONENT ;
fragment DIGITS : ('0'..'9')+ ;
fragment EXPONENT : ('e' | 'E') ('+' | '-')? DIGITS ;
IDENTIFIER : IDENTIFIER_START IDENTIFIER_PART* ;
fra... | grammar Expr;
NUMBER : INT_NUMBER | FRAC_NUMBER ;
fragment INT_NUMBER : '0' | '1'..'9' ('0'..'9')* ;
fragment FRAC_NUMBER : INT_NUMBER '.' DIGITS EXPONENT? | INT_NUMBER EXPONENT ;
fragment DIGITS : ('0'..'9')+ ;
fragment EXPONENT : ('e' | 'E') ('+' | '-')? DIGITS ;
IDENTIFIER : IDENTIFIER_START IDENTIFIER_PART* ;
fra... | Allow to use &&, || and ! operators in EL | Allow to use &&, || and ! operators in EL
| ANTLR | apache-2.0 | konsoletyper/teavm-flavour,konsoletyper/teavm-flavour |
6e75fbe7dd3cc4ef3f7eddfe303c6a391ccf2434 | mdx/mdx.g4 | mdx/mdx.g4 |
grammar mdx;
mdx_statement
: (select_statement) EOF
;
select_statement
: (WITH formula_specification)? SELECT axis_specification_list? FROM cube_specification (WHERE slicer_specification)? cell_props?
;
formula_specification
: single_formula_specification +
;
single_formula_specification
: mem... |
grammar mdx;
mdx_statement
: (select_statement) EOF
;
select_statement
: (WITH formula_specification)? SELECT axis_specification_list? FROM cube_specification (WHERE slicer_specification)? cell_props?
;
formula_specification
: single_formula_specification +
;
single_formula_specification
: mem... | Update mdx.g4 | Update mdx.g4
The comma is not mandatory, and you cannot have multiple properties after the comma. Rather, the statement can have multiple pairs of a comma and cell_property after the first cell_property | 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 |
ed83f7750227f6f12a9d7f7e9db73d0038320ec8 | src/main/antlr4/Config.g4 | src/main/antlr4/Config.g4 | grammar Config;
// [done] STRING lexer rule定义过于简单,不满足需求, 包括其中包含Quote(',")的String
// [done] nested bool expression中的字段引用
// [done] nested bool expression
// [done] Filter, Output 允许if else, 包含nested if..else
// [done] 允许key不包含双引号
// [done] 允许多行配置没有","分割
// [done] 允许plugin中不包含任何配置
// notes: lexer rule vs parser rule
//... | grammar Config;
// [done] STRING lexer rule定义过于简单,不满足需求, 包括其中包含Quote(',")的String
// [done] nested bool expression中的字段引用
// [done] nested bool expression
// [done] Filter, Output 允许if else, 包含nested if..else
// [done] 允许key不包含双引号
// [done] 允许多行配置没有","分割
// [done] 允许plugin中不包含任何配置
// notes: lexer rule vs parser rule
//... | remove plugin_list parser rule | remove plugin_list parser rule
| ANTLR | apache-2.0 | InterestingLab/waterdrop,InterestingLab/waterdrop |
6091635ebb8557e5ba42dff2832469292680a876 | sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4 | sharding-core/sharding-core-parse/sharding-core-parse-sqlserver/src/main/antlr4/imports/sqlserver/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 tableNames | add tableNames
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc |
fd02effce9930b1a320c915f999755d61463a7b0 | parsers/antlr/lect.g4 | parsers/antlr/lect.g4 | grammar lect;
// ----- Start symbols for the grammar.
// A single interactive statement, entered in REPL prompt.
// Note the extra line break to terminate.
single_input
: LINE_BREAK | simple_stmt | compound_stmt LINE_BREAK
;
// A single file of code.
file_input
: (LINE_BREAK | stmt)* ENDMARKER
;
// An expre... | grammar lect;
// ----- Start symbols for the grammar.
// A single interactive statement, entered in REPL prompt.
// Note the extra line break to terminate.
single_input
: LINE_BREAK | simple_stmt | compound_stmt LINE_BREAK
;
// A single file of code.
file_input
: (LINE_BREAK | stmt)* ENDMARKER
;
// An expre... | tweak grammar; add beginnings of support for pseudocode and stubbing | tweak grammar; add beginnings of support for pseudocode and stubbing
| ANTLR | apache-2.0 | dhh1128/lect,dhh1128/lect,dhh1128/lect |
c5f473a3c492f8180e44e9136c82b6d72c01462d | cto/CtoParser.g4 | cto/CtoParser.g4 | /*
[The "BSD licence"]
Copyright (c) 2018 Mario Schroeder
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... | /*
[The "BSD licence"]
Copyright (c) 2018 Mario Schroeder
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... | remove EOL | remove EOL | 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 |
8740d0b37b215555ac55982920a0248f76dd79ca | sharding-jdbc-ddl-parser/src/main/antlr4/imports/MySQLCreateIndex.g4 | sharding-jdbc-ddl-parser/src/main/antlr4/imports/MySQLCreateIndex.g4 | grammar MySQLCreateIndex;
import MySQLKeyword, Keyword, MySQLBase, BaseRule, Symbol;
createIndex:
CREATE (UNIQUE | FULLTEXT | SPATIAL)? INDEX indexName
indexType?
ON tableName keyPartsWithParen
; | grammar MySQLCreateIndex;
import MySQLKeyword, Keyword, MySQLBase, BaseRule, Symbol;
createIndex:
CREATE (UNIQUE | FULLTEXT | SPATIAL)? INDEX indexName
indexType?
ON tableName
; | optimize mysql create index | optimize mysql create index
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere |
778c5982f9e6248d07497759e4135225416dbaf6 | VineScript/Compiler/VineParser.g4 | VineScript/Compiler/VineParser.g4 | parser grammar VineParser;
/*
// django syntax: https://docs.djangoproject.com/en/1.10/topics/templates/#the-django-template-language
// django:
// * var: {{ foo }}
// * code: {% if foo %}
// * comment: {# comment #}
// detail: https://github.com/benjohnson/atom-django-templates/blob/master/grammars/ht... | parser grammar VineParser;
/*
// django syntax: https://docs.djangoproject.com/en/1.10/topics/templates/#the-django-template-language
// django:
// * var: {{ foo }}
// * code: {% if foo %}
// * comment: {# comment #}
// detail: https://github.com/benjohnson/atom-django-templates/blob/master/grammars/ht... | allow empty destination when code is provided | Links: allow empty destination when code is provided
The link's destination will be the same as the title:
[[my title||my code]]
is the same as:
[[my title|my title|my code]]
| ANTLR | mit | julsam/VineScript |
d72f3900972c0dbb066c91d6ec9aaf672e91f2ac | watertemplate-engine/grammar.g4 | watertemplate-engine/grammar.g4 | prop_name_head
: [a-zA-Z]
;
prop_name_body_char
: '_'
| [0-9]
| prop_name_head
;
prop_name_body
: prop_name_body_char
| prop_name_body_char prop_name_body
prop_name
: prop_name_head
| prop_name_head prop_name_body
;
id
: prop_name
| prop_name '.' id
;
// ---------------------------------------------... | prop_name_head
: [a-zA-Z]
;
prop_name_body_char
: '_'
| [0-9]
| prop_name_head
;
prop_name_body
: prop_name_body_char
| prop_name_body_char prop_name_body
;
prop_name
: prop_name_head
| prop_name_head prop_name_body
;
id
: prop_name
| prop_name '.' id
;
// ------------------------------------------... | Update grammar.g4 | Update grammar.g4 | ANTLR | apache-2.0 | codefacts/watertemplate-engine,tiagobento/watertemplate-engine,codefacts/watertemplate-engine,tiagobento/watertemplate-engine |
4cfc17560c3b71a71542d7609bf489a1f6756150 | python/PythonParser.g4 | python/PythonParser.g4 | // Header included from Python site:
/*
* Grammar for Python
*
* Note: Changing the grammar specified in this file will most likely
* require corresponding changes in the parser module
* (../Modules/parsermodule.c). If you can't make the changes to
* that module yourself, please co-ordinate... | // Header included from Python site:
/*
* Grammar for Python
*
* Note: Changing the grammar specified in this file will most likely
* require corresponding changes in the parser module
* (../Modules/parsermodule.c). If you can't make the changes to
* that module yourself, please co-ordinate... | Fix trailer in PythonParser | Fix trailer in PythonParser
| 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 |
b7d0083649f5ad161e2dd00134c9e7816469dbea | sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DCLStatement.g4 | sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DCLStatement.g4 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | delete `to` `from` | delete `to` `from`
| 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 |
b567ab3e64875226c436dc13ed1603dbf9d4e4ed | VineScript/Compiler/VineLexer.g4 | VineScript/Compiler/VineLexer.g4 | lexer grammar VineLexer;
@header {
using System;
}
@members{
//public override IToken Emit(){
// switch (_type) {
// case RESERVED_CHARS:
// //setType(RESERVED_CHARS);
// IToken result = base.Emit();
// // you'll need to define this method
// ... | lexer grammar VineLexer;
@header {
using System;
}
@members{
//public override IToken Emit(){
// switch (_type) {
// case RESERVED_CHARS:
// //setType(RESERVED_CHARS);
// IToken result = base.Emit();
// // you'll need to define this method
// ... | Fix nested dictionary declaration. In the case of a nested dictionary declaration, if the 2 endings '}' were not separated, it would cause a syntax error (it would enter the rule ROUTPUT). For example, this declaration would cause a syntax error: { "a": true, "b": { "c": false }} | Fix nested dictionary declaration.
In the case of a nested dictionary declaration, if the 2 endings '}' were not separated, it would cause a syntax error (it would enter the rule ROUTPUT).
For example, this declaration would cause a syntax error: { "a": true, "b": { "c": false }}
| ANTLR | mit | julsam/VineScript |
e3660b447ff8ed770587e8985d321451b0020803 | src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4 | src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4 | /* Todo:
* - Comments justifying and explaining every rule.
*/
lexer grammar CreoleTokens;
options { superClass=ContextSensitiveLexer; }
@members {
Formatting bold;
Formatting italic;
Formatting strike;
public void setupFormatting() {
bold = new Formatting("**");
italic = new Formatting("//");
... | /* Todo:
* - Comments justifying and explaining every rule.
*/
lexer grammar CreoleTokens;
options { superClass=ContextSensitiveLexer; }
@members {
Formatting bold;
Formatting italic;
Formatting strike;
public void setupFormatting() {
bold = new Formatting("**");
italic = new Formatting("//");
... | Handle empty code/nowiki blocks | Handle empty code/nowiki blocks
| ANTLR | apache-2.0 | strr/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,strr/reviki,CoreFiling/reviki,strr/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,ashirley/reviki,ashirley/reviki,CoreFiling/reviki |
81b6b2a50a680280177b069958f6634c0b07d4cd | Heroc.g4 | Heroc.g4 | /**
* Define a grammar called Hello
*/
grammar Heroc;
import Lexer;
options {
language=Python3;
}
sourcefile
: source? EOF
;
source
: variableDeclaration
| functionDefinition
| source variableDeclaration
| source functionDefinition
;
variableDeclaration
: LONG initVariableDeclarationList SEMI
;
init... | /**
* Define a grammar called Hello
*/
grammar Heroc;
import Lexer;
options {
language=Python3;
}
sourcefile
: source? EOF
;
source
: variableDeclaration
| functionDefinition
| source variableDeclaration
| source functionDefinition
;
variableDeclaration
: LONG initVariableDeclarationList SEMI
;
init... | Disable ‘,’ as expression. | Disable ‘,’ as expression.
| ANTLR | mit | wilima/herocomp,wilima/herocomp,wilima/herocomp |
4476dc6f64708a37641a061c31fff019784f333e | src/main/antlr/ConnectorLexer.g4 | src/main/antlr/ConnectorLexer.g4 | lexer grammar ConnectorLexer;
@ header {
}
INSERT
: 'insert' | 'INSERT'
;
UPSERT
: 'upsert' | 'UPSERT'
;
INTO
: 'into' | 'INTO'
;
SELECT
: 'select' | 'SELECT'
;
FROM
: 'from' | 'FROM'
;
IGNORE
: 'ignore' | 'IGNORE'
;
AS
: 'as' | 'AS'
;
AUTOCREATE
: 'autocreate' | ... | lexer grammar ConnectorLexer;
@ header {
}
INSERT
: 'insert' | 'INSERT'
;
UPSERT
: 'upsert' | 'UPSERT'
;
INTO
: 'into' | 'INTO'
;
SELECT
: 'select' | 'SELECT'
;
FROM
: 'from' | 'FROM'
;
IGNORE
: 'ignore' | 'IGNORE'
;
AS
: 'as' | 'AS'
;
AUTOCREATE
: 'autocreate' | ... | add support for initialize | add support for initialize
| ANTLR | apache-2.0 | datamountaineer/kafka-connect-query-language,datamountaineer/kafka-connect-query-language |
7f117294f5a372680e55caa9663ec09ab9318d16 | sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/mysql/MySQLDML.g4 | sharding-jdbc-ddl-parser/src/main/resources/io/shardingsphere/parser/antlr/mysql/MySQLDML.g4 | grammar MySQLDML;
import MySQLBase,MySQLKeyword,DMLBase,SQLBase,Keyword,Symbol;
@header{
package io.shardingsphere.parser.antlr.mysql;
}
selectSpec:
(ALL | DISTINCT | DISTINCTROW)?
HIGH_PRIORITY?
STRAIGHT_JOIN?
SQL_SMALL_RESULT?
SQL_BIG_RESULT?
SQL_BUFFER_RESULT?
(SQL_CACHE | SQL_NO_CACHE)?
SQL_CALC_FOUND_... | grammar MySQLDML;
import MySQLBase,MySQLKeyword,DMLBase,SQLBase,Keyword,Symbol;
selectSpec:
(ALL | DISTINCT | DISTINCTROW)?
HIGH_PRIORITY?
STRAIGHT_JOIN?
SQL_SMALL_RESULT?
SQL_BIG_RESULT?
SQL_BUFFER_RESULT?
(SQL_CACHE | SQL_NO_CACHE)?
SQL_CALC_FOUND_ROWS?
;
caseExpress:
caseCond
|caseComp
;
caseCom... | remove package | remove package
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc |
f8552a886d053a8943e5986e74d73ca59d53da5d | dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/Specky.g4 | dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/Specky.g4 | /* Copyright © 2016 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | /* Copyright © 2016 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | Fix syntax parsing issue. Require inline whitespace between the section keyword and section description. | Fix syntax parsing issue. Require inline whitespace between the section keyword and section description.
| ANTLR | bsd-3-clause | mattunderscorechampion/specky,mattunderscorechampion/specky,mattunderscorechampion/specky |
3850e6baa26a0290064a5e03e22cf5287c12e1db | DecisionModel/src/antlr/DeciLan.g4 | DecisionModel/src/antlr/DeciLan.g4 | /**
* Define a grammar called OuhangFirst
* this grammar is similar to Java while much simpler
*/
grammar DeciLan;
/**
* Package.
*/
packageDeclaration
: 'package' Identifier (DOT Identifier)* ';'
;
/**
* Import model.
*/
importModelDeclaration
: 'import-model' Identifier (DOT Identifier)* (... | /**
* Define a grammar called OuhangFirst
* this grammar is similar to Java while much simpler
*/
grammar DeciLan;
/**
* Package.
*/
packageDeclaration
: 'package' Identifier (DOT Identifier)* ';'
;
/**
* Import model.
*/
importModelDeclaration
: 'import-model' Identifier (DOT Identifier)* (... | Add signal attribute grammar | Add signal attribute grammar
| ANTLR | mit | OuHangKresnik/Ninja,OuHangKresnik/Ninja |
e8204272efd709f0c41cdefe733915d66b0ebea2 | 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... | Replace curly braces by constant | Replace curly braces by constant
| 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 |
a464aa195c8469f954115fa061e1148742e1361b | dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/Specky.g4 | dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/Specky.g4 | /* Copyright © 2016 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | /* Copyright © 2016 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | Make the spec more readable. | Make the spec more readable.
| ANTLR | bsd-3-clause | mattunderscorechampion/specky,mattunderscorechampion/specky,mattunderscorechampion/specky |
8560b4bfbbdbc0f177122e5230f5628c2317d09d | 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 fileStreamOn_ | add fileStreamOn_
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere |
870be7f2a9a8103bbe6692274eb063417ed36847 | projects/batfish/src/main/antlr4/org/batfish/grammar/flatjuniper/FlatJuniper_routing_instances.g4 | projects/batfish/src/main/antlr4/org/batfish/grammar/flatjuniper/FlatJuniper_routing_instances.g4 | parser grammar FlatJuniper_routing_instances;
import
FlatJuniper_common, FlatJuniper_forwarding_options, FlatJuniper_protocols, FlatJuniper_snmp;
options {
tokenVocab = FlatJuniperLexer;
}
ri_common
:
apply
| ri_description
| s_forwarding_options
| s_routing_options
;
ri_description
:
description
... | parser grammar FlatJuniper_routing_instances;
import
FlatJuniper_common, FlatJuniper_forwarding_options, FlatJuniper_protocols, FlatJuniper_snmp;
options {
tokenVocab = FlatJuniperLexer;
}
ri_common
:
apply
| ri_description
| s_forwarding_options
| s_routing_options
;
ri_description
:
description
... | Remove duplicate definition of roa_route (#3021) | Remove duplicate definition of roa_route (#3021)
| ANTLR | apache-2.0 | dhalperi/batfish,batfish/batfish,intentionet/batfish,dhalperi/batfish,intentionet/batfish,arifogel/batfish,batfish/batfish,arifogel/batfish,intentionet/batfish,dhalperi/batfish,intentionet/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish |
4b91e60bb2cb01b141fdd90d6e8575b5cf9ba0b3 | src/main/antlr/Trinity.g4 | src/main/antlr/Trinity.g4 | grammar Trinity;
import LexerRules; // includes all rules from LexerRules.g4
prog: (functionDecl /*| constDecl*/ | stmt)* ;
// Declarations
constDecl: TYPE ID '=' expr ';';
functionDecl: TYPE ID '(' formalParameters? ')' block; // Scalar f(Vector x) {...} ;
formalParameters: formalParameter (',' formalParameter)* ;... | grammar Trinity;
import LexerRules; // includes all rules from LexerRules.g4
prog: (functionDecl | stmt)* ;
// Declarations
constDecl: TYPE ID '=' expr ';';
functionDecl: TYPE ID '(' formalParameters? ')' block; // Scalar f(Vector x) {...} ;
formalParameters: formalParameter (',' formalParameter)* ;
formalParameter... | remove comment | remove comment
| ANTLR | mit | Medeah/Trinity,Medeah/Trinity |
80fca38c39f4e796366cdb1327a700d7533ac2dd | Src/java-quickstart/src/main/resources/cql.g4 | Src/java-quickstart/src/main/resources/cql.g4 | grammar cql;
/*
* Parser Rules
*/
logic
:
libraryDefinition?
usingDefinition*
includeDefinition*
(parameterDefinition | valuesetDefinition)*
statement+
;
/*
* Definitions
*/
libraryDefinition
: 'library' IDENTIFIER ('version' STRING)?
;
usingDefinition
: 'using' IDENTIFIER ('version... | grammar cql;
/*
* Parser Rules
*/
logic
:
libraryDefinition?
usingDefinition*
includeDefinition*
(parameterDefinition | valuesetDefinition)*
statement+
;
/*
* Definitions
*/
libraryDefinition
: 'library' IDENTIFIER ('version' STRING)?
;
usingDefinition
: 'using' IDENTIFIER ('version... | Update java-quickstart cql.g4 file to match the latest in CQL/Src/grammar | Update java-quickstart cql.g4 file to match the latest in CQL/Src/grammar
| ANTLR | apache-2.0 | wanghaisheng/clinical_quality_language-Research,DBCG/cql_engine,MeasureAuthoringTool/clinical_quality_language,cqframework/clinical_quality_language,wanghaisheng/clinical_quality_language-Research,cqframework/clinical_quality_language,wanghaisheng/clinical_quality_language-Research,MeasureAuthoringTool/clinical_quality... |
0a34d7a422ecd893449e4dc772f90a3a139d44f9 | java/java/JavaParser.g4 | java/java/JavaParser.g4 | /*
[The "BSD licence"]
Copyright (c) 2013 Terence Parr, Sam Harwell
Copyright (c) 2017 Ivan Kochurkin (upgrade to Java 8)
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 sou... | /*
[The "BSD licence"]
Copyright (c) 2013 Terence Parr, Sam Harwell
Copyright (c) 2017 Ivan Kochurkin (upgrade to Java 8)
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 sou... | Fix comment, give a concrete example | Fix comment, give a concrete example
| 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 |
62b57cb06ec71b2b2cc22007a8280ae2e7a22644 | src/main/antlr/Graphql.g4 | src/main/antlr/Graphql.g4 | grammar Graphql;
@header {
package graphql.parser.antlr;
}
// Document
document : definition+;
definition:
operationDefinition |
fragmentDefinition
;
operationDefinition:
selectionSet |
operationType NAME? variableDefinitions? directives? selectionSet;
operationType : NAME;
variableDefinitions : '(' variable... | grammar Graphql;
@header {
package graphql.parser.antlr;
}
// Document
document : definition+;
definition:
operationDefinition |
fragmentDefinition
;
operationDefinition:
selectionSet |
operationType NAME? variableDefinitions? directives? selectionSet;
operationType : NAME;
variableDefinitions : '(' variable... | make 4. parse as FloatValue | make 4. parse as FloatValue
| ANTLR | mit | fderose/graphql-java,fderose/graphql-java,dminkovsky/graphql-java,graphql-java/graphql-java,dminkovsky/graphql-java,blevandowski-lv/graphql-java,blevandowski-lv/graphql-java,graphql-java/graphql-java |
9b815ebb198b84f4fb38ed98f2fdd179737dd7f9 | xpath/yang-xpath-impl/src/main/antlr4/org/opendaylight/yangtools/yang/xpath/antlr/xpath.g4 | xpath/yang-xpath-impl/src/main/antlr4/org/opendaylight/yangtools/yang/xpath/antlr/xpath.g4 | grammar xpath;
/*
XPath 1.0 grammar. Should conform to the official spec at
http://www.w3.org/TR/1999/REC-xpath-19991116. The grammar
rules have been kept as close as possible to those in the
spec, but some adjustmewnts were unavoidable. These were
mainly removing left recursion (spec seems to be based on
LR), and to ... | grammar xpath;
/*
XPath 1.0 grammar. Should conform to the official spec at
http://www.w3.org/TR/1999/REC-xpath-19991116. The grammar
rules have been kept as close as possible to those in the
spec, but some adjustmewnts were unavoidable. These were
mainly removing left recursion (spec seems to be based on
LR), and to ... | Address XPath unicode range TODO | Address XPath unicode range TODO
This is a port of
https://github.com/antlr/grammars-v4/commit/3edc28b7a1f1ff4a40ef1ebb8c14bb28848d34bf
addressing a leftover omission.
Change-Id: Ic5460c1ec2dd4865fb25f858f107da89e0be284b
Signed-off-by: Robert Varga <91ae5aa8c7a9f7e57b701db766e23e544aaa6ae9@pantheon.tech>
| ANTLR | epl-1.0 | opendaylight/yangtools,opendaylight/yangtools |
2b363eed5b52bfd703ab08139f8ca400cc37e04b | 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 ... | rename to fileTableSpecification__ | rename to fileTableSpecification__
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc |
2022097d5b8fa6a6f144e4565021858ce76d5a61 | wren/WrenParser.g4 | wren/WrenParser.g4 | /*
[The "BSD licence"]
Copyright (c) 2022 Boris Zhguchev
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 ... | /*
[The "BSD licence"]
Copyright (c) 2022 Boris Zhguchev
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 ... | correct grammar | correct 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 |
e16c9d6c0eddd83d043277431fe0c3f2dcaed081 | source/Owin.Scim.Antlr/ScimFilter.g4 | source/Owin.Scim.Antlr/ScimFilter.g4 | grammar ScimFilter;
parse
: filter
;
filter
: attrPath SP PR #presentExp
| attrPath SP COMPAREOPERATOR SP VALUE #operatorExp
| NOT? SP* '(' filter ')' #braceExp
| attrPath '[' valPathFilter ']' #valPathExp
| filter SP AND SP filter ... | grammar ScimFilter;
parse
: filter
;
filter
: attrPath SP PR #presentExp
| attrPath SP COMPAREOPERATOR SP VALUE #operatorExp
| NOT? SP* '(' filter ')' #braceExp
| attrPath '[' valPathFilter ']' #valPathExp
| filter SP AND SP filter ... | Revert "Added support for filtering on datetime (meta.lastModified and meta.created)" | Revert "Added support for filtering on datetime (meta.lastModified and meta.created)"
| ANTLR | mit | PowerDMS/Owin.Scim,PowerDMS/Owin.Scim,PowerDMS/Owin.Scim |
285a499f6047330d59f14d90aab3824d8e1d2a34 | sharding-core/src/main/antlr4/imports/MySQLDCLStatement.g4 | sharding-core/src/main/antlr4/imports/MySQLDCLStatement.g4 | grammar MySQLDCLStatement;
import MySQLKeyword, Keyword, BaseRule, DataType, Symbol;
grant
: GRANT privType columnList? (COMMA privType columnList?)*
ON objectType? privLevel
TO userOrRoles
(WITH GRANT OPTION)?
;
privType
: ALL PRIVILEGES?
| ALTER ROUTINE?
| CREATE (ROUTINE | TEMPORAR... | grammar MySQLDCLStatement;
import MySQLKeyword, Keyword, BaseRule, DataType, Symbol;
grant
: GRANT privType columnList? (COMMA privType columnList?)*
ON objectType? privLevel
TO userOrRoles
(WITH GRANT OPTION)?
;
privType
: ALL PRIVILEGES?
| ALTER ROUTINE?
| CREATE
| CREATE ROUTIN... | fix mysql privType | fix mysql privType
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere |
9f7e5e87a2621a606351a6cd75ace0e181edc986 | src/main/antlr/MiniJava.g4 | src/main/antlr/MiniJava.g4 | grammar MiniJava;
program : mainClassDecl (classDecl)* ;
mainClassDecl : 'class' ID '{' 'public' 'static' 'void' 'main' '(' 'String' '[' ']' ID')' '{' (stmt)* '}' '}' ;
classDecl : 'class' ID ('extends' ID)? '{' (classVarDecl)* (methodDecl)* '}' ;
classVarDecl : type ID ';' ;
methodDecl : 'public' type ID (LPAREN (for... | grammar MiniJava;
program : mainClassDecl (classDecl)* ;
mainClassDecl : 'class' ID '{' 'public' 'static' 'void' 'main' '(' 'String' '[' ']' ID')' '{' (stmt)* '}' '}' ;
classDecl : 'class' ID ('extends' ID)? '{' (classVarDecl)* (methodDecl)* '}' ;
classVarDecl : type ID ';' ;
methodDecl : 'public' type ID (LPAREN (for... | Fix association of +- and */ | Fix association of +- and */
| ANTLR | mit | rockwotj/mjc |
3864c983a94112e1257f8d14e32f574f3f9c4336 | 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 unreserve keyword 'NAME' for mysql | add unreserve keyword 'NAME' for mysql
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere |
f21cbe7415f575d736d5434696dd9580c2f24ddc | src/main/antlr4/nl/eernie/jmoribus/Gherkins.g4 | src/main/antlr4/nl/eernie/jmoribus/Gherkins.g4 | grammar Gherkins;
story
: prologue? scenario*;
prologue
: NEWLINE? prologue_keyword (NEWLINE step)+;
scenario
: NEWLINE? scenario_keyword title (NEWLINE step)+;
title
: line;
step
: step_keyword line (NEWLINE SPACE SPACE line)*;
line
: (SPACE|TEXT)*;
feature_keyword
: 'Feature:';
prolog... | grammar Gherkins;
story
: feature? prologue? scenario*;
feature
: feature_keyword title
;
prologue
: NEWLINE? prologue_keyword (NEWLINE step)+;
scenario
: NEWLINE? scenario_keyword title (NEWLINE step)+;
title
: line;
step
: step_keyword line (NEWLINE SPACE SPACE line)*;
line
: ... | Add the feature plus title to the grammer file | Add the feature plus title to the grammer file
I wasn't able to seperate the two files.
When I made the keywords a LEXER rule the parser couldn't match them anymore and when I tried to keep it a Parser rule it also gave errors.
Something about implicit literal. I combined the two again en voila.
It isn't what I hoped ... | ANTLR | mit | Eernie/JMoribus |
ce0c3d77b800ca334712fd9632a5aa5fe232f221 | sharding-core/src/main/antlr4/imports/BaseRule.g4 | sharding-core/src/main/antlr4/imports/BaseRule.g4 | grammar BaseRule;
import DataType, Keyword, Symbol;
ID:
(BQ_?[a-zA-Z_$][a-zA-Z0-9_$]* BQ_? DOT)? (BQ_?[a-zA-Z_$][a-zA-Z0-9_$]* BQ_?)
| [a-zA-Z_$0-9]+ DOT ASTERISK
;
schemaName
: ID
;
databaseName
: ID
;
domainName
: ID
;
tableName
: ID
;
columnName
: ID
;
seq... | grammar BaseRule;
import DataType, Keyword, Symbol;
ID:
(BQ_?[a-zA-Z_$][a-zA-Z0-9_$]* BQ_? DOT)? (BQ_?[a-zA-Z_$][a-zA-Z0-9_$]* BQ_?)
| [a-zA-Z_$0-9]+ DOT ASTERISK
;
schemaName
: ID
;
databaseName
: ID
;
domainName
: ID
;
tableName
: ID
;
columnName... | remove databaseName | remove databaseName
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere |
04aa1517aa281679ace73369f8968aa5746820f8 | java8-pt/JavaParser.g4 | java8-pt/JavaParser.g4 | /*
[The "BSD licence"]
Copyright (c) 2013 Terence Parr, Sam Harwell
Copyright (c) 2017 Ivan Kochurkin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain... | /*
[The "BSD licence"]
Copyright (c) 2013 Terence Parr, Sam Harwell
Copyright (c) 2017 Ivan Kochurkin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain... | Rewrite Java8PT methodReference rule (courtesy @KvanTTT) | Rewrite Java8PT methodReference rule (courtesy @KvanTTT)
| 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 |
28e78176d5f492f1c1d3b5d320b37fed4c188ae7 | sharding-core/src/main/antlr4/io/shardingsphere/core/parsing/antlr/autogen/OracleStatement.g4 | sharding-core/src/main/antlr4/io/shardingsphere/core/parsing/antlr/autogen/OracleStatement.g4 | grammar OracleStatement;
import OracleKeyword, Keyword, OracleBase, OracleCreateIndex, OracleAlterIndex
, OracleDropIndex, OracleCreateTable, OracleAlterTable, OracleDropTable, OracleTruncateTable
, OracleTCLStatement, OracleDCLStatement
;
execute
: createIndex
| alterIndex
| dropInde... | grammar OracleStatement;
import OracleKeyword, Keyword, OracleBase, OracleCreateIndex, OracleAlterIndex
, OracleDropIndex, OracleCreateTable, OracleAlterTable, OracleDropTable, OracleTruncateTable
, OracleTCLStatement, OracleDCLStatement
;
execute
: createIndex
| alterIndex
| dropInde... | add alter role statement | add alter role statement
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc |
c2edcc4688a7394ed486853a3ec6690b9c3099e8 | smalltalk/smalltalk.g4 | smalltalk/smalltalk.g4 | /*
Converted to ANTLR 4 by James Ladd (Redline Smalltalk Project http://redline.st).
Adapted from the Amber Smalltalk grammar perser.pegjs
2013/11/27 James Ladd (object@redline.st)
*/
grammar smalltalk;
script : sequence EOF;
sequence : ws temps? ws statements? ws;
ws : (SEPARATOR | COMMENT)*;
temps : PIPE ... | /*
Converted to ANTLR 4 by James Ladd (Redline Smalltalk Project http://redline.st).
Adapted from the Amber Smalltalk grammar perser.pegjs
2013/11/27 James Ladd (object@redline.st)
*/
grammar Smalltalk;
script : sequence EOF;
sequence : ws temps? ws statements? ws;
ws : (SEPARATOR | COMMENT)*;
temps : PIPE ... | rename to cap S | rename to cap S
| 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 |
af88ef57597ab7e3de02b09ab8400489124cc02a | antlr/KalangLexer.g4 | antlr/KalangLexer.g4 | lexer grammar KalangLexer;
@lexer::members {
public static final int WHITESPACE = 3;
public static final int COMMENTS = 4;
private boolean inString = false;
}
// LEXER
// §3.9 Keywords
DOUBLE_COLON : '::' ;
AS:'as';
CONSTRUCTOR:'constructor';
VAR:'var';
VAL: 'val';
FOREACH:'foreach';
ARROW:'->';
START_... | lexer grammar KalangLexer;
@lexer::members {
public static final int WHITESPACE = 3;
public static final int COMMENTS = 4;
private boolean inString = false;
}
// LEXER
// §3.9 Keywords
DOUBLE_COLON : '::' ;
AS:'as';
CONSTRUCTOR:'constructor';
VAR:'var';
VAL: 'val';
FOREACH:'foreach';
ARROW:'->';
START_... | fix StringCharacter rule | fix: fix StringCharacter rule | ANTLR | mit | kasonyang/kalang |
e7b23a6c29c7cd9b5d3b126ab52c29f372a71780 | molecule/molecule.g4 | molecule/molecule.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... | Update element symbols | Update element symbols | 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 |
e6fc4955833c44d557415b99face9d304eba5db8 | Solidity.g4 | Solidity.g4 | // Copyright 2016-2019 Federico Bond <federicobond@gmail.com>
// Licensed under the MIT license. See LICENSE file in the project root for details.
grammar Solidity;
sourceUnit
: (pragmaDirective | importDirective | contractDefinition)* EOF ;
pragmaDirective
: 'pragma' pragmaName pragmaValue ';' ;
pragmaName
:... | // Copyright 2016-2019 Federico Bond <federicobond@gmail.com>
// Licensed under the MIT license. See LICENSE file in the project root for details.
grammar Solidity;
sourceUnit
: (pragmaDirective | importDirective | contractDefinition)* EOF ;
pragmaDirective
: 'pragma' pragmaName pragmaValue ';' ;
pragmaName
:... | Add support for natspec comments | Add support for natspec comments
| ANTLR | mit | federicobond/solidity-antlr4,solidityj/solidity-antlr4 |
37f563de09c382a32e59d5ae8ad05f5892b383fd | projects/batfish/src/main/antlr4/org/batfish/grammar/cisco/Cisco_line.g4 | projects/batfish/src/main/antlr4/org/batfish/grammar/cisco/Cisco_line.g4 | parser grammar Cisco_line;
import Cisco_common;
options {
tokenVocab = CiscoLexer;
}
l_access_class
:
IPV6? ACCESS_CLASS
(
(
(
EGRESS
| INGRESS
) name = variable
)
|
(
name = variable
(
IN
| OUT
... | parser grammar Cisco_line;
import Cisco_common;
options {
tokenVocab = CiscoLexer;
}
l_access_class
:
IPV6? ACCESS_CLASS
(
(
(
EGRESS
| INGRESS
) name = variable
)
|
(
name = variable
(
IN
| OUT
... | add support for console line length | cisco: add support for console line length
https://www.cisco.com/c/en/us/td/docs/ios/12_2/configfun/command/reference/ffun_r/frf003.html\#wpmkr1018163
| ANTLR | apache-2.0 | intentionet/batfish,dhalperi/batfish,batfish/batfish,intentionet/batfish,batfish/batfish,dhalperi/batfish,arifogel/batfish,dhalperi/batfish,arifogel/batfish,intentionet/batfish,arifogel/batfish,batfish/batfish,intentionet/batfish,intentionet/batfish |
6fa864164766490ab0371b306667b5bcafed5cf8 | sharding-core/src/main/antlr4/imports/OracleKeyword.g4 | sharding-core/src/main/antlr4/imports/OracleKeyword.g4 | lexer grammar OracleKeyword;
import Symbol;
ACCOUNT
: A C C O U N T
;
ADMIN
: A D M I N
;
AT
: A T
;
AUTHENTICATION
: A U T H E N T I C A T I O N
;
BATCH
: B A T C H
;
BITMAP
: B I T M A P
;
CACHE
: C A C H E
;
CASE
: C A S E
;
CHECKPOINT
: C... | lexer grammar OracleKeyword;
import Symbol;
ACCOUNT
: A C C O U N T
;
ADMIN
: A D M I N
;
AT
: A T
;
AUTHENTICATION
: A U T H E N T I C A T I O N
;
BATCH
: B A T C H
;
BITMAP
: B I T M A P
;
CACHE
: C A C H E
;
CASE
: C A S E
;
CHECKPOINT
: C... | remove common keyword | remove common keyword
| 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 |
58703df046e500da66c7ab682adbd1a27260f94d | cto/CtoLexer.g4 | cto/CtoLexer.g4 | /*
[The "BSD licence"]
Copyright (c) 2018 Mario Schroeder
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... | /*
[The "BSD licence"]
Copyright (c) 2018 Mario Schroeder
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... | remove letter | remove letter | 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 |
bf1c3f03fa6740f0e59eec78f411bbfe2404dabf | 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
;
formalParameterDeclsRest
: ... | grammar HML;
hybridModel
: signalDeclaration* variableDeclaration* template* program EOF;
template
: 'Template' ID formalParameters parStatement;
formalParameters
: '(' formalParameterDecls? ')'
;
formalParameterDecls
: type formalParameterDeclsRest
;
formalParameterDeclsRest
: ... | add multi-array supporting for signals | add multi-array supporting for signals
| ANTLR | mit | fanghuixing/HML |
cf2ebcbfe310e50a7386d3e67db262bdadc19419 | 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 space in addition to T and t as time separator | [TOML] allow space in addition to T and t as time separator
| 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 |
b944390b0be2117038d8e53bbb05ff29dc095416 | dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/SpeckyLexer.g4 | dsl-parser/src/main/antlr4/com/mattunderscore/specky/parser/SpeckyLexer.g4 | /* Copyright © 2016 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | /* Copyright © 2016 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | Support different expression parsing modes. | Support different expression parsing modes.
| ANTLR | bsd-3-clause | mattunderscorechampion/specky,mattunderscorechampion/specky,mattunderscorechampion/specky |
5b35354441d1c546e75b595582d7987dd43ec81f | powerbuilder/powerbuilderParser.g4 | powerbuilder/powerbuilderParser.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 and the ... | /*
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 and the ... | Simplify powerbuilderParser grammar, remove useless parentheses | Simplify powerbuilderParser grammar, remove useless parentheses
| 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 |
506ee1921cbdde108b764b2382625fc2343384af | Twee2Z/Analyzer/Twee.g4 | Twee2Z/Analyzer/Twee.g4 | parser grammar Twee;
options { tokenVocab = LEX; }
start
: ignoreFirst passage*
;
ignoreFirst
: passage
| ~PASS ignoreFirst
;
passage
: PASS PMODEWORD TAG? ~PMODE_END* PMODE_END passageContent?
;
passageContent
: (macro|text|link) passageContent?
;
link
: LINK_START ((LTARGET|LEXCLUDE)+ PIPE)? (FUNC... | parser grammar Twee;
options { tokenVocab = LEX; }
start
: ignoreFirst passage*
;
ignoreFirst
: passage
| ~PASS ignoreFirst
;
passage
: PASS PMODEWORD TAG? ~PMODE_END* PMODE_END passageContent?
;
passageContent
: innerPassageContent+
;
innerPassageContent
: (macro|text|link)
;
link
: LINK_START ... | remove call stack overflow exception | remove call stack overflow exception
| ANTLR | mit | humsp/uebersetzerbauSWP |
dd24ba79d5167cc53e0b087143e0688ce3a3d873 | 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 tableAlias | add tableAlias
| 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 |
2aecc5c0eb4e2d20e43dbee9697cf23a94433b18 | 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;
programUnit
: (FUNCTION | PROCEDURE | PACKAGE) schemaName? ID
; | grammar OracleDCLStatement;
import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol;
grantRolesToPrograms
: roleName (COMMA roleName)* TO programUnit ( COMMA programUnit )*
;
programUnit
: (FUNCTION | PROCEDURE | PACKAGE) schemaName? ID
; | add grantRolesToPrograms | add grantRolesToPrograms
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere |
29013531cff633f1203d32b4bfabed133dcfc280 | projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_xr/CiscoXr_rpl.g4 | projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_xr/CiscoXr_rpl.g4 | parser grammar CiscoXr_routemap;
import CiscoXr_common;
options {
tokenVocab = CiscoXrLexer;
}
apply_rp_stanza
:
APPLY name = variable
(
PAREN_LEFT varlist = route_policy_params_list PAREN_RIGHT
)? NEWLINE
;
as_expr
:
DEC
| AUTO
| RP_VARIABLE
;
as_path_set_elem
:
IOS_REGEX AS_PATH_SET... | parser grammar CiscoXr_routemap;
import CiscoXr_common;
options {
tokenVocab = CiscoXrLexer;
}
apply_rp_stanza
:
APPLY name = variable
(
PAREN_LEFT varlist = route_policy_params_list PAREN_RIGHT
)? NEWLINE
;
as_expr
:
DEC
| AUTO
| RP_VARIABLE
;
as_path_set_elem
:
IOS_REGEX AS_PATH_SET... | work around a crash in route policy evaluation (#5636) | IOS-XR: work around a crash in route policy evaluation (#5636)
The code needs reworking: it's never safe for a parent to recurse into its child's context
if recovery is enabled.
For now, this works around a crash when recovery kicked in.
See https://github.com/batfish/batfish/issues/5625
| ANTLR | apache-2.0 | intentionet/batfish,batfish/batfish,arifogel/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish,dhalperi/batfish,arifogel/batfish,dhalperi/batfish,intentionet/batfish,dhalperi/batfish,intentionet/batfish,intentionet/batfish,batfish/batfish |
96818a178ce4c8d9cba9b396a703925b4c7bd00d | 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 NUMBER in JmesPath.g4 to avoid conflics with NUMBER in JSON.g4 | Rename NUMBER in JmesPath.g4 to avoid conflics with NUMBER in JSON.g4 | ANTLR | bsd-3-clause | burtcorp/jmespath-java |
20db36cf76d7160a3d870d7e0dca878aa440fdba | sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/Keyword.g4 | sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/Keyword.g4 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | fix mysql/Keyword.g4 | fix mysql/Keyword.g4
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere |
d848b2e37bcdc638842319a33f668fcfef0857dd | shardingsphere-distsql-parser/shardingsphere-distsql-parser-engine/src/main/antlr4/imports/Keyword.g4 | shardingsphere-distsql-parser/shardingsphere-distsql-parser-engine/src/main/antlr4/imports/Keyword.g4 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Rename ResourceStatement.g4 (#10819) | Rename ResourceStatement.g4 (#10819)
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere |
1a8db12a86027e2ab957cf50152859eff0f700c4 | src/br/ufscar/compiladores2/t3/antlr/jaSON.g4 | src/br/ufscar/compiladores2/t3/antlr/jaSON.g4 | grammar JaSON;
program :
(class_definition)*;
class_definition :
'class' IDENT '{' class_body '}';
class_body :
variables* constructors+ main_function?;
variables :
type IDENT;
constructors :
IDENT '(' arguments? ')' '{' constructor_body '}' ;
constructor_body :
assignment*;
assignment :
... | grammar JaSON;
program :
(class_definition)*;
class_definition :
'class' IDENT '{' class_body '}';
class_body :
variables* constructors+ main_function?;
variables :
type IDENT;
constructors :
IDENT '(' arguments? ')' '{' constructor_body '}' ;
constructor_body :
assignment*;
assignment :
... | update grammar | update grammar
| ANTLR | mit | leobronza/compiladores2-t3 |
4f66c2f416bc20fb735ca2c1681d6aa7f40129c5 | VineScriptLib/Compilers/Vine/VineParser.g4 | VineScriptLib/Compilers/Vine/VineParser.g4 | parser grammar VineParser;
/*
// django syntax: https://docs.djangoproject.com/en/1.10/topics/templates/#the-django-template-language
// django:
// * var: {{ foo }}
// * code: {% if foo %}
// * comment: {# comment #}
// detail: https://github.com/benjohnson/atom-django-templates/blob/master/grammars/ht... | parser grammar VineParser;
/*
// django syntax: https://docs.djangoproject.com/en/1.10/topics/templates/#the-django-template-language
// django:
// * var: {{ foo }}
// * code: {% if foo %}
// * comment: {# comment #}
// detail: https://github.com/benjohnson/atom-django-templates/blob/master/grammars/ht... | Handle error when a keyword is used as a variable name | Handle error when a keyword is used as a variable name
| ANTLR | mit | julsam/VineScript |
c770b1a13f1007ecbd643cb6f42dc5c726580272 | python/PythonParser.g4 | python/PythonParser.g4 | // Header included from Python site:
/*
* Grammar for Python
*
* Note: Changing the grammar specified in this file will most likely
* require corresponding changes in the parser module
* (../Modules/parsermodule.c). If you can't make the changes to
* that module yourself, please co-ordinate... | // Header included from Python site:
/*
* Grammar for Python
*
* Note: Changing the grammar specified in this file will most likely
* require corresponding changes in the parser module
* (../Modules/parsermodule.c). If you can't make the changes to
* that module yourself, please co-ordinate... | fix print_stmt | fix print_stmt
| 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 |
de813dc89b36f08f2ea86d573d684abf8b7d072c | sharding-core/src/main/antlr4/imports/Keyword.g4 | sharding-core/src/main/antlr4/imports/Keyword.g4 | lexer grammar Keyword;
import Symbol;
ALL
: A L L
;
AND
: A N D
;
ANY
: A N Y
;
AS
: A S
;
ASC
: A S C
;
BETWEEN
: B E T W E E N;
BINARY
: B I N A R Y
;
BIT_INCLUSIVE_OR
: B I T UL_ I N C L U S I V E UL_ O R
;
BIT_NUM
: B I T UL_ N U M
;
BY
... | lexer grammar Keyword;
import Symbol;
ADD
: A D D
;
ALL
: A L L
;
ALTER
: A L T E R
;
ALWAYS
: A L W A Y S
;
AND
: A N D
;
ANY
: A N Y
;
AS
: A S
;
ASC
: A S C
;
BETWEEN
: B E T W E E N
;
BINARY
: B I N A R Y
;
BIT_INCLUSIVE_OR
... | add keyword | add keyword
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc |
d0d92e948a902923e33c08aad3b38479f17edf5c | 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 dropIndex rule | modify dropIndex rule
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere |
8aae72b5f1a0096fc6d4e880345b0ecebfe81950 | graphql/GraphQL.g4 | graphql/GraphQL.g4 | /*
The MIT License (MIT)
Copyright (c) 2015 Joseph T. McBride
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, mod... | /*
The MIT License (MIT)
Copyright (c) 2015 Joseph T. McBride
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, mod... | Add enum value to array | Add enum value to array
Add ability to add enum values in an array | 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 |
edbc5416a9bb266194435a0fa2251e8f0666e843 | parser/Cel.g4 | parser/Cel.g4 | // Common Expression Language grammar for C++
// Based on Java grammar with the following changes:
// - rename grammar from CEL to Cel to generate C++ style compatible names.
grammar Cel;
// Grammar Rules
// =============
start
: e=expr EOF
;
expr
: e=conditionalOr (op='?' e1=conditionalOr ':' e2=expr)?... | // Common Expression Language grammar for C++
// Based on Java grammar with the following changes:
// - rename grammar from CEL to Cel to generate C++ style compatible names.
grammar Cel;
// Grammar Rules
// =============
start
: e=expr EOF
;
expr
: e=conditionalOr (op='?' e1=conditionalOr ':' e2=expr)?... | Rename TRUE and FALSE | Rename TRUE and FALSE
This avoids conflicts with default macros defined by the Windows and
macOS SDKs.
Fixes: https://github.com/google/cel-cpp/issues/121
| ANTLR | apache-2.0 | google/cel-cpp,google/cel-cpp |
b1dfc0a1eef158cb74fc7e2781a5c62f29a9e5ee | 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 |
6346c20e313b5e261f4683c115055160b02da0c0 | powerbuilder/powerbuilderLexer.g4 | powerbuilder/powerbuilderLexer.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 and the ... | /*
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 and the ... | Simplify powerbuilderLexer.g4 | Simplify powerbuilderLexer.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 |
dd5fcea8645319abb22479b3551564f126d86781 | sharding-core/src/main/antlr4/imports/BaseRule.g4 | sharding-core/src/main/antlr4/imports/BaseRule.g4 | //rule in this file does not allow override
grammar BaseRule;
import DataType,Keyword,Symbol;
ID:
(BACK_QUOTA?[a-zA-Z_$][a-zA-Z0-9_$]* BACK_QUOTA? DOT)?
(BACK_QUOTA?[a-zA-Z_$][a-zA-Z0-9_$]* BACK_QUOTA?)
|[a-zA-Z_$0-9]+ DOT ASTERISK
;
schemaName: ID;
tableName: ID;
columnName: ID;
tablespaceName: I... | //rule in this file does not allow override
grammar BaseRule;
import DataType,Keyword,Symbol;
ID:
(BACK_QUOTA?[a-zA-Z_$][a-zA-Z0-9_$]* BACK_QUOTA? DOT)?
(BACK_QUOTA?[a-zA-Z_$][a-zA-Z0-9_$]* BACK_QUOTA?)
|[a-zA-Z_$0-9]+ DOT ASTERISK
;
schemaName: ID;
tableName: ID;
columnName: ID;
tablespaceName: I... | add userName | add userName
| ANTLR | apache-2.0 | apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc |
482bce7bafa47aa5456fc70609562395204b38bb | sharding-core/src/main/antlr4/imports/MySQLKeyword.g4 | sharding-core/src/main/antlr4/imports/MySQLKeyword.g4 | lexer grammar MySQLKeyword;
import Symbol;
ACTION
: A C T I O N
;
AFTER
: A F T E R
;
ALGORITHM
: A L G O R I T H M
;
ANALYZE
: A N A L Y Z E
;
AUTO_INCREMENT
: A U T O UL_ I N C R E M E N T
;
AVG_ROW_LENGTH
: A V G UL_ R O W UL_ L E N G T H
;
BEGIN
: B E G... | lexer grammar MySQLKeyword;
import Symbol;
ACTION
: A C T I O N
;
ADMIN
: A D M I N
;
AFTER
: A F T E R
;
ALGORITHM
: A L G O R I T H M
;
ANALYZE
: A N A L Y Z E
;
AT_
: A T UL_
;
AUDIT_ADMIN
: A U D I T UL_ A D M I N
;
AUTO_INCREMENT
: A U T O UL_... | add mysql keywords | add mysql keywords
| 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 |
3d15523e7c671662db00f9eb7ff5986e94f6dd79 | 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 ... | modify tableIndex rule | modify tableIndex rule
| ANTLR | apache-2.0 | leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere |
4b32d205a425e03354b3679c14886a832560a7bb | lua/Lua.g4 | lua/Lua.g4 | /*
BSD License
Copyright (c) 2013, Kazunori Sakamoto
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... | /*
BSD License
Copyright (c) 2013, Kazunori Sakamoto
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... | Improve Lua gramma for supporting string contatination with '\' and shebang (#!). | Improve Lua gramma for supporting string contatination with '\' and shebang (#!).
| 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 |
1dd663416df71593839e919b007ba117c201186f | 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 unrecognized token error | fix unrecognized token error
| ANTLR | bsd-3-clause | sekiguchi-nagisa/DShell,sekiguchi-nagisa/DShell |
d65e1d80731a44d94d129ea0d0d6f76ac90c2ba5 | src/main/antlr4/nl/bigo/pp/PGN.g4 | src/main/antlr4/nl/bigo/pp/PGN.g4 | /*
* Copyright (c) 2013 by Bart Kiers
*
* 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, pu... | /*
* The MIT License (MIT)
*
* Copyright (c) 2013 by Bart Kiers
*
* 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... | Update PGN.g4 | Update PGN.g4 | ANTLR | mit | bkiers/PGN-parser |
1126a91f8b1fbb6e354340bf8c0af3efa5fea88e | Solidity.g4 | Solidity.g4 | // Copyright 2016-2017 Federico Bond <federicobond@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
... | // Copyright 2016-2017 Federico Bond <federicobond@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
... | Allow calldata in storageLocation | Allow calldata in storageLocation
| ANTLR | mit | solidityj/solidity-antlr4,federicobond/solidity-antlr4 |
55c0683afdb7994129ee9769d019bff815da83b0 | src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4 | src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4 | lexer grammar CreoleTokens;
options { superClass=ContextSensitiveLexer; }
@members {
// We keep track of whether we're in bold or not with this state. It's not
// ideal, but as the start/end formatting tokens are all the same, this is
// probably the best we can do (short of going crazy with lexer modes).
For... | lexer grammar CreoleTokens;
options { superClass=ContextSensitiveLexer; }
@members {
// We keep track of whether we're in bold or not with this state. It's not
// ideal, but as the start/end formatting tokens are all the same, this is
// probably the best we can do (short of going crazy with lexer modes).
For... | Allow '.' and '-' to occur in the middle of interwiki link targets | Allow '.' and '-' to occur in the middle of interwiki link targets
| ANTLR | apache-2.0 | CoreFiling/reviki,ashirley/reviki,strr/reviki,strr/reviki,strr/reviki,CoreFiling/reviki,ashirley/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki |
f1bef0bdd931b2d1aa09d0e63d82aefd5049dae6 | omni-cx2x/src/cx2x/translator/language/parser/Claw.g4 | omni-cx2x/src/cx2x/translator/language/parser/Claw.g4 | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
/**
* ANTLR 4 Grammar file for the CLAW directive language.
*
* @author clementval
*/
grammar Claw;
@header
{
import cx2x.translator.common.ClawConstant;
import cx2x.translator.language.base.ClawDirective;
import c... | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
/**
* ANTLR 4 Grammar file for the CLAW directive language.
*
* @author clementval
*/
grammar Claw;
@header
{
import cx2x.translator.common.ClawConstant;
import cx2x.translator.language.base.ClawDirective;
import c... | Refactor some parser rule to have same naming convention | Refactor some parser rule to have same naming convention
| ANTLR | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler |
128458d6aeb67dce09ba08a7f2594f9b71ed4e17 | src/grammars/org/antlr/intellij/plugin/parser/ANTLRv4Parser.g4 | src/grammars/org/antlr/intellij/plugin/parser/ANTLRv4Parser.g4 | /*
* [The "BSD license"]
* Copyright (c) 2013 Terence Parr
* Copyright (c) 2013 Sam Harwell
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of s... | /*
* [The "BSD license"]
* Copyright (c) 2013 Terence Parr
* Copyright (c) 2013 Sam Harwell
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of s... | add comment | add comment
| ANTLR | bsd-3-clause | parrt/intellij-plugin-v4,antlr/intellij-plugin-v4,consulo/consulo-antlr4,rojaster/intellij-plugin-v4,rojaster/intellij-plugin-v4,bjansen/intellij-plugin-v4,bjansen/intellij-plugin-v4,Maccimo/intellij-plugin-v4,parrt/intellij-plugin-v4,antlr/intellij-plugin-v4,Maccimo/intellij-plugin-v4,sharwell/intellij-plugin-v4 |
8c448d8980ed48a5b491caaa30e066126430dbad | kquery/KQuery.g4 | kquery/KQuery.g4 | /*
[The "BSD licence"]
Copyright (c) 2013 Sam Harwell
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
... | /*
[The "BSD licence"]
Copyright (c) 2013 Sumit Lahiri
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
... | Update KQuery.g4 | Update KQuery.g4 | ANTLR | mit | antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4 |
4b2e3499d68396d386721034df9d2c70810152ee | src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4 | src/net/hillsdon/reviki/wiki/renderer/creole/CreoleTokens.g4 | lexer grammar CreoleTokens;
options { superClass=ContextSensitiveLexer; }
@members {
// We keep track of whether we're in bold or not with this state. It's not
// ideal, but as the start/end formatting tokens are all the same, this is
// probably the best we can do (short of going crazy with lexer modes).
For... | lexer grammar CreoleTokens;
options { superClass=ContextSensitiveLexer; }
@members {
// We keep track of whether we're in bold or not with this state. It's not
// ideal, but as the start/end formatting tokens are all the same, this is
// probably the best we can do (short of going crazy with lexer modes).
For... | Allow the WikiWords token to include a revision | Allow the WikiWords token to include a revision
| ANTLR | apache-2.0 | CoreFiling/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,ashirley/reviki,strr/reviki,strr/reviki,CoreFiling/reviki,strr/reviki |
2a8c5d9cc123e8858e74932c073d6d7703591fed | omni-cx2x/src/cx2x/translator/language/parser/Claw.g4 | omni-cx2x/src/cx2x/translator/language/parser/Claw.g4 | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
/**
* ANTLR 4 Grammar file for the CLAW directive language.
*
* @author clementval
*/
grammar Claw;
@header
{
import cx2x.translator.common.ClawConstant;
import cx2x.translator.language.base.*;
import cx2x.translat... | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
/**
* ANTLR 4 Grammar file for the CLAW directive language.
*
* @author clementval
*/
grammar Claw;
@header
{
import cx2x.translator.common.ClawConstant;
import cx2x.translator.language.base.*;
import cx2x.translat... | Introduce target clause parser rule + apply it to loop fusion | Introduce target clause parser rule + apply it to loop fusion
#84
| ANTLR | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler |
ee69928feab2aff9c18f92e7523d398d67d5825a | src/main/resources/syntax/LPMLN.g4 | src/main/resources/syntax/LPMLN.g4 | /**
* LPMLN 词法语法定义
* 王彬
* 2016-08-30
**/
grammar LPMLN;
/**
* 词法定义
**/
//缺省否定关键字
NAF_NOT : 'not ';
//字符串
STRING : '"' ('\\"'|~('"'))* '"';
//规则终结符
FULLSTOP : '.';
//正整数
POSITIVE_INT : [1-9][0-9]*;
//小数(点表示法)
DECIMAL : MINUS? (POSITIVE_INT* | ZERO ) FULLSTOP [0-9] ZERO* [1-9]*;
//0
ZERO : '0';
//常量
CONSTANT : [a-z][a... | /**
* LPMLN 词法语法定义
* 王彬
* 2016-08-30
**/
grammar LPMLN;
/**
* 词法定义
**/
//缺省否定关键字
NAF_NOT : 'not ';
//字符串
STRING : '"' ('\\"'|~('"'))* '"';
//规则终结符
FULLSTOP : '.';
//正整数
POSITIVE_INT : [1-9][0-9]*;
//小数(点表示法)
DECIMAL : MINUS? (POSITIVE_INT* | ZERO ) FULLSTOP [0-9] ZERO* [1-9]*;
//0
ZERO : '0';
//常量
CONSTANT : [a-z][a... | 修改项,统一关系表达式 | 修改项,统一关系表达式
Signed-off-by: 许鸿翔 <ebcf9462b4672da4b31ccb60a5db1234887eda71@foxmail.com>
| ANTLR | agpl-3.0 | wangbiu/lpmlnmodels |
d4b076a755cbd9567fa02e0ff576e1021dbf6cd5 | antlr/antlr4/Python3/ANTLRv4Lexer.g4 | antlr/antlr4/Python3/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 Python3 target for antlr/antlr4/ grammar. | Update Python3 target for antlr/antlr4/ 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 |
b8af2a4884d97ac5a1198b52949c34a58e3c826b | terraform/terraform.g4 | terraform/terraform.g4 | /*
BSD License
Copyright (c) 2020, Tom Everett
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and t... | /*
BSD License
Copyright (c) 2020, Tom Everett
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and t... | Add ',' to separate map entries | Add ',' to separate map entries
| 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 |
2b82932f980f90789b099fb2445b52e7aa44bb51 | src/main/antlr/at/ac/tuwien/kr/alpha/antlr/ASPCore2.g4 | src/main/antlr/at/ac/tuwien/kr/alpha/antlr/ASPCore2.g4 | grammar ASPCore2;
import ASPLexer;
/* The ASP-Core-2 grammar in ANTLR v4 based on
* https://www.mat.unical.it/aspcomp2013/files/ASP-CORE-2.01c.pdf
* (sections 4 and 5, pages 10-12).
* It is extended a bit to parse widespread syntax used by gringo/clasp,
* see productions "gringo_range" and "gringo_sharp".
*/
pr... | grammar ASPCore2;
import ASPLexer;
/* The ASP-Core-2 grammar in ANTLR v4 based on
* https://www.mat.unical.it/aspcomp2013/files/ASP-CORE-2.01c.pdf
* (sections 4 and 5, pages 10-12).
* It is extended a bit to parse widespread syntax (e.g. used by gringo/clasp).
*/
program : statements? query?;
statements : state... | Revert "Revert "Enforcing commas in answer-set parsing. Minor comment adaption."" | Revert "Revert "Enforcing commas in answer-set parsing. Minor comment adaption.""
This reverts commit 173bdee9144afca0133a36b270a4210e4216ec36.
| ANTLR | bsd-2-clause | AntoniusW/Alpha,alpha-asp/Alpha,alpha-asp/Alpha |
fb32fa04370e7e50919f1b7ec5f8614e9ba1db09 | src/main/antlr/YokohamaUnitParser.g4 | src/main/antlr/YokohamaUnitParser.g4 | parser grammar YokohamaUnitParser;
options { tokenVocab=YokohamaUnitLexer; }
group: abbreviation* definition* ;
abbreviation: STAR_LBRACKET ShortName RBRACKET_COLON Line ;
definition: test
| fourPhaseTest
| tableDef
| codeBlock
| heading
;
test: TEST Line assertion... | parser grammar YokohamaUnitParser;
options { tokenVocab=YokohamaUnitLexer; }
group: abbreviation* definition* ;
abbreviation: STAR_LBRACKET ShortName RBRACKET_COLON Line ;
definition: test
| fourPhaseTest
| tableDef
| codeBlock
| heading
;
test: TEST Line assertion... | Embed `string` into resourceExpr instead of referring stringExpr | Embed `string` into resourceExpr instead of referring stringExpr | ANTLR | mit | tkob/yokohamaunit,tkob/yokohamaunit |
2932258e2c6140e195d7a4cc4814c52656bbff6d | 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... | Add boolean literals to the lexer | Add boolean literals to the lexer | ANTLR | mit | tkob/yokohamaunit,tkob/yokohamaunit |
057ed71e12fb68b5ae211b4e6e6e7c12ee62ee04 | 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;
grantSystemPrivileges
: systemObjects TO (granteeClause | granteeIdentifiedBy) (WITH (ADMIN | DELEGATE) OPTION)?
;
systemObjects
: systemObject(COMMA systemObject)*
;
systemObject
: ... | grammar OracleDCLStatement;
import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol;
grant
: GRANT
(
(grantSystemPrivileges | grantObjectPrivileges) (CONTAINER EQ_OR_ASSIGN (CURRENT | ALL))?
| grantRolesToPrograms
)
;
grantSystemPrivileges
: systemObjects TO (grante... | add grant | add grant
| 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 |
5a4d65dae7b44fb111ef829cee58e5d2a705c356 | src/antlr/clj/alphabet.g4 | src/antlr/clj/alphabet.g4 | lexer grammar alphabet;
fragment LETTER
: [a-zA-Z]
| // covers all characters above 0xFF which are not a surrogate
~[\u0000-\u00FF\uD800-\uDBFF]
{Character.isJavaIdentifierStart(_input.LA(-1))}?
| // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF
[\uD800-\uDBFF... | lexer grammar alphabet;
fragment LETTER
: [a-zA-Z]
| // covers all characters above 0xFF which are not a surrogate
~[\u0000-\u00FF\uD800-\uDBFF]
{Character.isJavaIdentifierStart(_input.LA(-1))}?
| // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF
[\uD800-\uDBFF... | use fragment to force emission of tokens not chars | use fragment to force emission of tokens not chars
| ANTLR | epl-1.0 | mobileink/lab.clj.antlr,mobileink/lab.antlr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.