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
3d3c7e6a168a6d426ce41dffd8127d09f26a5512
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 create user statement
add create user statement
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
85c83eebb9c8d4ba30678316986976bbc6eeb9b2
sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
rename to addColumnSpecification
rename to addColumnSpecification
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
694e5be8ea09a8f530c6fa897037f780e5a5ae90
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; grantee : userName | roleName | PUBLIC ; granteeIdentifiedBy : userName (COMMA userName)* IDENTIFIED BY STRING (COMMA STRING)* ; grantObjectPrivileges : objectPrivilege (COMMA obj...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; granteeClause : grantee (COMMA grantee) ; grantee : userName | roleName | PUBLIC ; granteeIdentifiedBy : userName (COMMA userName)* IDENTIFIED BY STRING (COMMA STRING)* ; ...
add granteeClause
add granteeClause
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
878d2aae33ffed355d7bfd07d28434ed10d4c4f0
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
sharding-core/src/main/antlr4/imports/OracleDCLStatement.g4
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
grammar OracleDCLStatement; import OracleKeyword, Keyword, OracleBase, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://docs.oracle.com/database/121/SQLRF/. * no begin statement in oracle */ //statements_9014.htm#SQLRF01603 grant : GRANT ( (grantSystemPrivileges |...
add drop user
add drop user
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
7f49b1931f1ea1255b77ad80f7bb33988ab5d075
src/main/antlr4/YokohamaUnitLexer.g4
src/main/antlr4/YokohamaUnitLexer.g4
lexer grammar YokohamaUnitLexer; HASH1: '#' ; HASH2: '##' ; HASH3: '###' ; HASH4: '####' ; HASH5: '#####' ; HASH6: '######' ; TEST: 'Test:' [ \t]* -> mode(TEST_NAME); TABLE_CAPTION: '[' -> skip, mode(TABLE_NAME); SETUP: 'Setup' -> mode(PHASE_LEADING); EXERCISE: 'Exercise' -> mode(PHASE_LEADING); VERIFY:...
lexer grammar YokohamaUnitLexer; HASH1: '#' ; HASH2: '##' ; HASH3: '###' ; HASH4: '####' ; HASH5: '#####' ; HASH6: '######' ; TEST: 'Test:' [ \t]* -> mode(TEST_NAME); TABLE_CAPTION: '[' -> skip, mode(TABLE_NAME); SETUP: 'Setup' -> mode(PHASE_LEADING); EXERCISE: 'Exercise' -> mode(PHASE_LEADING); VERIFY:...
Remove EXPECT_CLASS state from the lexer
Remove EXPECT_CLASS state from the lexer
ANTLR
mit
tkob/yokohamaunit,tkob/yokohamaunit
9bba885cd8a35f21cea2ab443dee8c2b656558bc
turing/turing.g4
turing/turing.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 to start rule for turing/. Corrected grammar -- '{}' means 0 or more, not 0 or 1.
Add EOF to start rule for turing/. Corrected grammar -- '{}' means 0 or more, not 0 or 1.
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
3e3723c7f53bb0f63792a3726f6a06d5b3f2e2c1
RustLexer/RustLexer.g4
RustLexer/RustLexer.g4
lexer grammar RustLexer; tokens { EQ, LT, LE, EQEQ, NE, GE, GT, ANDAND, OROR, NOT, TILDE, PLUT, MINUS, STAR, SLASH, PERCENT, CARET, AND, OR, SHL, SHR, BINOP, BINOPEQ, AT, DOT, DOTDOT, DOTDOTDOT, COMMA, SEMI, COLON, MOD_SEP, RARROW, FAT_ARROW, LPAREN, RPAREN, LBRACKET, RBRACKET, LBRACE, RBRACE, POUN...
lexer grammar RustLexer; tokens { EQ, LT, LE, EQEQ, NE, GE, GT, ANDAND, OROR, NOT, TILDE, PLUT, MINUS, STAR, SLASH, PERCENT, CARET, AND, OR, SHL, SHR, BINOP, BINOPEQ, AT, DOT, DOTDOT, DOTDOTDOT, COMMA, SEMI, COLON, MOD_SEP, RARROW, FAT_ARROW, LPAREN, RPAREN, LBRACKET, RBRACKET, LBRACE, RBRACE, POUN...
Make the grammar rules for multiline (and possibly multiline) characters more resilient
Make the grammar rules for multiline (and possibly multiline) characters more resilient
ANTLR
mit
Boddlnagg/VisualRust,Vbif/VisualRust,Muraad/VisualRust,drewet/VisualRust,xilec/VisualRust,dlsteuer/VisualRust,xilec/VisualRust,yacoder/VisualRust,vadimcn/VisualRust,Connorcpu/VisualRust,Stitchous/VisualRust,tempbottle/VisualRust,cmr/VisualRust,dlsteuer/VisualRust,Vbif/VisualRust,vadimcn/VisualRust,vosen/VisualRust,Conn...
f9e7077f3d18aa0c02020df5e4df2b97fb0500cf
sharding-core/src/main/antlr4/imports/MySQLKeyword.g4
sharding-core/src/main/antlr4/imports/MySQLKeyword.g4
lexer grammar MySQLKeyword; import Symbol; ACCOUNT : A C C O U N T ; 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 ; AUDIT_ADMIN : A U D I T UL_ A D M I N ; AUTO_INCREMENT : A U ...
lexer grammar MySQLKeyword; import Symbol; ACCOUNT : A C C O U N T ; 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 ; AUDIT_ADMIN : A U D I T UL_ A D M I N ; AUTO_INCREMENT : A U ...
add if to mysql keyword
add if to mysql keyword
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
edce5c44d2d681e32bb23034d822bf0fcf1cb43e
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 array typenames as expressions
Add support for array typenames as expressions
ANTLR
mit
solidityj/solidity-antlr4,federicobond/solidity-antlr4
a6c9d0eacde8bc7ca2439cd599c2f11aa2812a84
Protogen.g4
Protogen.g4
grammar Protogen; ATTR : 'auth' | 'unauth' | 'admin' | 'global' | 'map' ; NEWTYPE : 'newtype' ; CATEGORY : 'category' ; INCLUDE : 'include' ; METHOD : 'method' ; PRIM : 'i8' | 'u8' | 'i16' | 'u16' | 'i32' | 'u32' | 'f32' | 'i64' | 'u64' | 'f64' | 'array' '<' IDENT '>' ; SEMI : ';' ; LBRACE : '{...
grammar Protogen; ATTR : 'auth' | 'unauth' | 'admin' | 'global' | 'map' ; NEWTYPE : 'newtype' ; CATEGORY : 'category' ; INCLUDE : 'include' ; METHOD : 'method' ; PRIM : 'i8' | 'u8' | 'i16' | 'u16' | 'i32' | 'u32' | 'f32' | 'i64' | 'u64' | 'f64' | 'array' '<' IDENT '>' ; SEMI : ';' ; LBRACE : '{...
Rename prog nonterminal to protocol
Rename prog nonterminal to protocol
ANTLR
mit
cmr/Protogen,arke-industries/Protogen
8a2b7a38fab20a2e1065307ac32c00cb0e5fb3aa
src/queryparser/postgresql/PostgreSQLParser.g4
src/queryparser/postgresql/PostgreSQLParser.g4
parser grammar PostgreSQLParser; options { tokenVocab = PostgreSQLLexer; } ////////////////////////////////////////////////////////////////////////////// relational_op: EQ | LTH | GTH | NOT_EQ | LET | GET; cast_data_type: BINARY (LPAREN INTEGER_NUM RPAREN)? | CHAR (LPAREN INTEGER_NUM RPAREN)? | D...
parser grammar PostgreSQLParser; options { tokenVocab = PostgreSQLLexer; } ////////////////////////////////////////////////////////////////////////////// relational_op: EQ | LTH | GTH | NOT_EQ | LET | GET; cast_data_type: BINARY (LPAREN INTEGER_NUM RPAREN)? | CHAR (LPAREN INTEGER_NUM RPAREN)? | D...
Fix OFFSET postgres bug
Fix OFFSET postgres bug
ANTLR
apache-2.0
aipescience/queryparser
e79d5a8a0c5290edc468c826b2f5b241a914bb57
src/main/antlr/BrygLexer.g4
src/main/antlr/BrygLexer.g4
/** * Thanks to * https://github.com/antlr/grammars-v4/blob/master/python3/Python3.g4 * for the base of an indentation-sensitive lexer in ANTLR! */ lexer grammar BrygLexer; @header { package io.collap.bryg.parser; } tokens { INDENT, DEDENT } @lexer::members { // A queue where extra tokens are pu...
/** * Thanks to * https://github.com/antlr/grammars-v4/blob/master/python3/Python3.g4 * for the base of an indentation-sensitive lexer in ANTLR! */ lexer grammar BrygLexer; @header { package io.collap.bryg.parser; } tokens { INDENT, DEDENT } @lexer::members { // A queue where extra tokens are pu...
Remove extraneous comment.
Remove extraneous comment.
ANTLR
mit
Collap/bryg
9d7bb7f3d23ac86e73aadbe89743d6285ae07c4d
prolog.g4
prolog.g4
/* BSD License Copyright (c) 2013, 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) 2013, 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...
implement module operator : (from second ISO standard)
implement module operator : (from second ISO standard)
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
046307485fdf39c0650075a687f55feda80808db
graphene/parser/GQL.g4
graphene/parser/GQL.g4
grammar GQL; @header { from graphene.commands import * from graphene.expressions import * } // General parsing, including statement lists parse : stmt_list EOF; stmt_list returns [stmts] : s1=stmt {$stmts = [$s1.ctx]} (';' (si=stmt {$stmts.append($si.ctx)})? )* ; stmt : ( c=match_stmt | c=create_stmt ...
grammar GQL; @header { from graphene.commands import * from graphene.expressions import * } // General parsing, including statement lists parse : stmt_list EOF; stmt_list returns [stmts] : s1=stmt {$stmts = [$s1.ctx]} (';' (si=stmt {$stmts.append($si.ctx)})? )* ; stmt : ( c=match_stmt | c=create_stmt ...
Allow underscores/hyphens in relation names
Allow underscores/hyphens in relation names
ANTLR
apache-2.0
PHB-CS123/graphene,PHB-CS123/graphene,PHB-CS123/graphene
85b7e11fc4a86cd7bdc7878f86b597657b543bbd
src/antlr/PTP.g4
src/antlr/PTP.g4
grammar PTP; @header { package pt.up.fe.iart.proj1.parser; } map : stmt+ ; stmt : node_stmt #node | edge_stmt #edge ; edge_stmt : 'Edge' '(' from=node_stmt ',' to=node_stmt ',' weight=(INT|REAL) ')'; node_stmt : 'GasStation' '(' position ')' #GasStation | 'GenericLocation' '...
grammar PTP; @header { package pt.up.fe.iart.proj1.parser; } map : stmt+ ; stmt : node_stmt #node | edge_stmt #edge ; edge_stmt : 'Edge' '(' from=node_stmt ',' to=node_stmt ',' weight=(INT|REAL) ')'; node_stmt : 'GasStation' '(' position ')' #GasStation | 'GenericLocation' '...
Add comments to input grammar.
Add comments to input grammar.
ANTLR
mit
migulorama/feup-iart-2014,migulorama/feup-iart-2014
f09a753e73d7b5eff486edc95d54c51bc383e009
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 user statement
add alter user statement
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
8df7263b96161687b99fc88e1b67d2b4710d459a
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/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 ...
use tableNameClause
use tableNameClause
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
6fb348a3113c8a60c4fbdee63198f7f67019c1e3
Krypton.LibProtocol/Grammars/KryptonParser.g4
Krypton.LibProtocol/Grammars/KryptonParser.g4
parser grammar KryptonParser; options { tokenVocab=KryptonTokens; } // Root members init : import_statement* library_declaration* ; import_statement : IMPORT (directory)? IDENTIFIER '.' KPDL ';' ; group_definition : GROUP IDENTIFIER ';' ; protocol_definition : PROTOCOL IDENTIFIER ...
parser grammar KryptonParser; options { tokenVocab=KryptonTokens; } // Root members init : import_statement* library_declaration* ; import_statement : IMPORT (directory)? IDENTIFIER '.' KPDL ';' ; group_definition : GROUP IDENTIFIER ';' ; protocol_definition : PROTOCOL IDENTIFIER ...
simplify the expression tree
parser: simplify the expression tree
ANTLR
mit
toontown-archive/Krypton.LibProtocol
e380f5a3d9555ac9d11d0cb13925d78cef9011c2
fortran77/Fortran77Lexer.g4
fortran77/Fortran77Lexer.g4
/* * Fortran 77 grammar for ANTLR 2.7.5 * Adadpted from Fortran 77 PCCTS grammar by Olivier Dragon * Original PCCTS grammar by Terence Parr * * 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 Foundati...
/* * Fortran 77 grammar for ANTLR 2.7.5 * Adadpted from Fortran 77 PCCTS grammar by Olivier Dragon * Original PCCTS grammar by Terence Parr * * 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 Foundati...
remove commented old code
remove commented old code
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
660b4d515f118c7aacaf2af7c2c86d33df7b0d42
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 resourcetype and name instead of using the generic 'label'
Add resourcetype and name instead of using the generic '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
f4d7a33bfb9c407e3cb60dbce8bc304e676a299e
src/main/antlr/SHRParser.g4
src/main/antlr/SHRParser.g4
parser grammar SHRParser; options { tokenVocab=SHRLexer; } shr: dataDefsDoc | valuesetDefsDoc /* | contentProfiles*/; // DATA DEFINITIONS (Vocabularies, Entries, Elements) dataDefsDoc: dataDefsHeader usesStatement? pathDefs? vocabularyDefs? dataDefs; dataDefsHeader: KW_DATA_DEFINITIONS nam...
parser grammar SHRParser; options { tokenVocab=SHRLexer; } shr: dataDefsDoc | valuesetDefsDoc /* | contentProfiles*/; // DATA DEFINITIONS (Vocabularies, Entries, Elements) dataDefsDoc: dataDefsHeader usesStatement? pathDefs? vocabularyDefs? dataDefs; dataDefsHeader: KW_DATA_DEFINITIONS nam...
Update grammar to allow constraints on value
Update grammar to allow constraints on value
ANTLR
apache-2.0
standardhealth/shr_spec
17ff134db7ffa379d226a58f8b6cc9af382f8ae2
kotlin/kotlin/KotlinParser.g4
kotlin/kotlin/KotlinParser.g4
/** * Kotlin Grammar for ANTLR v4 * * Based on: * http://jetbrains.github.io/kotlin-spec/#_grammars_and_parsing * and * http://kotlinlang.org/docs/reference/grammar.html * * Tested on * https://github.com/JetBrains/kotlin/tree/master/compiler/testData/psi */ parser grammar KotlinParser; options { tokenVocab...
/** * Kotlin Grammar for ANTLR v4 * * Based on: * http://jetbrains.github.io/kotlin-spec/#_grammars_and_parsing * and * http://kotlinlang.org/docs/reference/grammar.html * * Tested on * https://github.com/JetBrains/kotlin/tree/master/compiler/testData/psi */ parser grammar KotlinParser; options { tokenVocab...
Fix parsing classes with constructor without block statement
Fix parsing classes with constructor without block statement
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
b892695315eabea975337aa233e89449adfaee17
pike/pike.g4
pike/pike.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 t...
/* 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 t...
Make pike have a non-infinite rule
Make pike have a non-infinite rule
ANTLR
mit
antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4
73fa6acb3fc2537efc6e670a6774a8785ec493ed
src/Composer.g4
src/Composer.g4
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ grammar Composer; stat: assign NEWLINE {console.log("create new");} | connect NEWLINE {console.log("connect new");} ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ grammar Composer; prog: (stat)+; stat: declare NEWLINE {System.out.println("create expression");} | connect NEWLINE {System....
Update Composer.g4
Update Composer.g4
ANTLR
mit
hanwencheng/ConnectLang
6720c4c4e2276056247462f44cbc5edd09a9e94f
sharding-core/src/main/antlr4/imports/SQLServerKeyword.g4
sharding-core/src/main/antlr4/imports/SQLServerKeyword.g4
lexer grammar SQLServerKeyword; import Symbol; ABORT_AFTER_WAIT : A B O R T UL_ A F T E R UL_ W A I T ; ACTION : A C T I O N ; ALGORITHM : A L G O R I T H M ; ALLOW_PAGE_LOCKS : A L L O W UL_ P A G E UL_ L O C K S ; ALLOW_ROW_LOCKS : A L L O W UL_ R O W UL_ L O C K S ; ALL...
lexer grammar SQLServerKeyword; import Symbol; ABORT_AFTER_WAIT : A B O R T UL_ A F T E R UL_ W A I T ; ACTION : A C T I O N ; ALGORITHM : A L G O R I T H M ; ALLOW_PAGE_LOCKS : A L L O W UL_ P A G E UL_ L O C K S ; ALLOW_ROW_LOCKS : A L L O W UL_ R O W UL_ L O C K S ; ALL...
add keyword
add keyword
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
fe4c9c6e0a69889a179f4cf82019989848463d02
antlr3/ANTLRv3.g4
antlr3/ANTLRv3.g4
/* [The "BSD licence"] Copyright (c) 2005-2007 Terence Parr All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list ...
/* [The "BSD licence"] Copyright (c) 2005-2007 Terence Parr All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list ...
format Antlr3
format Antlr3
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
9fa3b66c5caa0e937ea69f6f76bdb0b87845b989
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 ; observationExpressions : <assoc=left> observationExpressions FOLLOWEDBY observationExpressions | observati...
// 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 ; observationExpressions : <assoc=left> observationExpressions FOLLOWEDBY observationExpressions | observati...
Update patterning grammar definition for Base64
Update patterning grammar definition for Base64
ANTLR
bsd-3-clause
oasis-open/cti-stix2-json-schemas
55c42c5963fbfa5ad3631cedca7882d3e0ea3a50
sql/hive/v3/IdentifiersParser.g4
sql/hive/v3/IdentifiersParser.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 the priority problem of 'BETWEEN AND' expression and 'AND' logical operator
Fix the priority problem of 'BETWEEN AND' expression and 'AND' logical operator
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
b38e4695c529a36d3f25b82f6a013710ce10e1e9
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 alterDefinitionClause_
rename to alterDefinitionClause_
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc
c336040b2aa001179e1cbf546f8df9359f27248a
reo-compiler/src/main/antlr4/nl/cwi/reo/parse/Reo.g4
reo-compiler/src/main/antlr4/nl/cwi/reo/parse/Reo.g4
grammar Reo; /** * Generic structure */ file : body EOF ; body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | nodes '=' nodes # defnJoin ; comp : ID assign? n...
grammar Reo; /** * Generic structure */ file : includes body EOF ; incl : 'include' body : (comp | defn)* ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' body '}' # defnComposed | nodes '=' nodes # defnJoin ...
Update Reo.g4
Update Reo.g4
ANTLR
mit
kasperdokter/Reo,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler
3c8a2acea59482d1362d8be4062b4a0bca381639
grammars/cs652/cdecl/CDecl.g4
grammars/cs652/cdecl/CDecl.g4
grammar CDecl; declaration : typename declarator ';' ; typename : 'void' | 'float' | 'int' | ID ; declarator : declarator '[' ']' # Array // right operators have highest precedence | declarator '(' ')' # Func | '*' declarator # Pointer | '(' declarator ')' ...
grammar CDecl; declaration : typename declarator ';' ; typename : 'void' | 'float' | 'int' | ID ; declarator : declarator '[' ']' # Array // right operators have highest precedence | declarator '(' ')' # Func | '*' declarator # Pointer | '(' declarator ')' ...
Update CDecl.g4
Update CDecl.g4
ANTLR
bsd-2-clause
USF-CS652-starterkits/parrt-cdecl
e7500982e67cd47ab85ea325da0d376ad53521fe
omni-cx2x/src/cx2x/translator/language/Claw.g4
omni-cx2x/src/cx2x/translator/language/Claw.g4
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; import cx2x.translator.common.Constant; import cx2x....
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import java.util.List; import java.util.ArrayList; import cx2x.translator.common.Constant; import cx2x....
Add mapping_option_list
Add mapping_option_list
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
523c6a4d5f0d454499551501db6c0e9a284771e3
src/main/antlr/WorkflowCatalogQueryLanguage.g4
src/main/antlr/WorkflowCatalogQueryLanguage.g4
grammar WorkflowCatalogQueryLanguage; @header { package org.ow2.proactive.workflow_catalog.rest.query.parser; } // PARSER start // start rule, begin parsing here : expression ; expression // ANTLR resolves ambiguities in favor of the alternative given first : expression AND expression #andExpression...
grammar WorkflowCatalogQueryLanguage; @header { package org.ow2.proactive.workflow_catalog.rest.query.parser; } // PARSER start // start rule, begin parsing here : expression ; expression // ANTLR resolves ambiguities in favor of the alternative given first : expression AND expression #andExpression...
Clean up grammar
Clean up grammar
ANTLR
agpl-3.0
paraita/workflow-catalog,laurianed/workflow-catalog,gparanthoen/workflow-catalog,ow2-proactive/workflow-catalog,yinan-liu/workflow-catalog,ShatalovYaroslav/catalog,ow2-proactive/catalog,ShatalovYaroslav/catalog,ow2-proactive/catalog,laurianed/catalog,laurianed/catalog,ow2-proactive/catalog,ShatalovYaroslav/catalog,laur...
9776dff4dbcafe4ee9b13d52fde5fbbdc2a0f6f2
Code/src/main/antlr4/nl/utwente/group10/haskell/typeparser/Type.g4
Code/src/main/antlr4/nl/utwente/group10/haskell/typeparser/Type.g4
grammar Type; CT : [A-Z][a-z]+ ; VT : [a-z]+ ; WS : [ \t\r\n]+ -> skip ; type : typeClasses ? innerType ; innerType : functionType | compoundType ; // function type functionType : compoundType '->' innerType ; compoundType : constantType | variableType | tupleType | listType | parenType ; tupleType : '(' innerType (...
grammar Type; CT : [A-Z][a-z]+ ; VT : [a-z]+ ; WS : [ \t\r\n]+ -> skip ; type : typeClasses ? innerType ; innerType : functionType | compoundType ; // function type functionType : compoundType '->' innerType ; compoundType : constantType | variableType | tupleType | listType | parenType ; tupleType : '(' innerType (...
Add single type class notation to type parser
Add single type class notation to type parser
ANTLR
mit
viskell/viskell,wandernauta/viskell,andrewdavidmackenzie/viskell
72ab15ab002a010ec7d6f76f5ad107a60aa5da37
sharding-core/src/main/antlr4/imports/MySQLDCLStatement.g4
sharding-core/src/main/antlr4/imports/MySQLDCLStatement.g4
grammar MySQLDCLStatement; import MySQLKeyword, Keyword, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://dev.mysql.com/doc/refman/8.0/en/. */ //grant.html grantPriveleges : GRANT privType columnList? (COMMA privType columnList?)* ON objectType? privLevel TO u...
grammar MySQLDCLStatement; import MySQLKeyword, Keyword, BaseRule, DataType, Symbol; /** * each statement has a url, * each base url : https://dev.mysql.com/doc/refman/8.0/en/. */ //grant.html grantPriveleges : GRANT privType columnList? (COMMA privType columnList?)* ON objectType? privLevel TO u...
fix user rule, role rule and create user rule
fix user rule, role rule and create user rule
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
79042a9695fc552319c7edfa5a463d2a41056693
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 a STRING which follows "provider" (the provider name)
Add a STRING which follows "provider" (the provider name)
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
927179e199b9e7cdd48c56b9ec15d71de7eed438
sharding-jdbc-ddl-parser/src/main/antlr4/imports/PostgreBase.g4
sharding-jdbc-ddl-parser/src/main/antlr4/imports/PostgreBase.g4
grammar PostgreBase; import PostgreKeyword, DataType, Keyword, Symbol, BaseRule; columnDefinition : columnName dataType collateClause? columnConstraint* ; dataType : typeName intervalFields? dataTypeLength? (WITHOUT TIME ZONE | WITH TIME ZONE)? (LEFT_BRACKET RIGHT_BRACKET)* | ID ; typeName : DOUBLE ...
grammar PostgreBase; import PostgreKeyword, DataType, Keyword, Symbol, BaseRule; columnDefinition : columnName dataType collateClause? columnConstraint* ; dataType : typeName intervalFields? dataTypeLength? (WITHOUT TIME ZONE | WITH TIME ZONE)? (LEFT_BRACKET RIGHT_BRACKET)* | ID ; typeName : DOUBLE ...
fix foreign key bug
fix foreign key bug
ANTLR
apache-2.0
apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere
0a7278a2668cad3321624ad1068b62bb5cc6540f
omni-cx2x/src/cx2x/translator/language/Claw.g4
omni-cx2x/src/cx2x/translator/language/Claw.g4
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import cx2x.translator.common.ClawConstant; import cx2x.translator.misc.Utility; } /*------------------...
/* * This file is released under terms of BSD license * See LICENSE file for more information */ /** * ANTLR 4 Grammar file for the CLAW directive language. * * @author clementval */ grammar Claw; @header { import cx2x.translator.common.ClawConstant; import cx2x.translator.misc.Utility; } /*------------------...
Change dimension grammar definition
Change dimension grammar definition
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
9731faa7302014400c00028ec0708b76a5907711
antlr4/ANTLRv4Lexer.g4
antlr4/ANTLRv4Lexer.g4
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
/* * [The "BSD license"] * Copyright (c) 2014 Terence Parr * Copyright (c) 2014 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...
read actions more accurately
read actions more accurately
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
4f7cce6b7c725226bd044163a5adec98f6800962
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("//"); ...
Allow inline whitespace to appear in the middle of a parbreak
Allow inline whitespace to appear in the middle of a parbreak
ANTLR
apache-2.0
strr/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,ashirley/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,CoreFiling/reviki,ashirley/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,strr/reviki,CoreFiling/reviki
65655b895f6424de9d222613ac37d2152f794f44
watertemplate-engine/grammar.g4
watertemplate-engine/grammar.g4
prop_name_head : Upper- or lowercase letter A through Z ; prop_name_body : '_' | prop_name_head ; prop_name : prop_name_head | prop_name_head prop_name_body ; id : prop_name | prop_name '.' id ; // --------------------------------------------- prop_eval : ~id~ ; if : '~if' id ':' statements ':~' | ...
prop_name_head : [a-zA-Z] ; prop_name_body : '_' | [0-9] | prop_name_head ; prop_name : prop_name_head | prop_name_head prop_name_body ; id : prop_name | prop_name '.' id ; // --------------------------------------------- prop_eval : '~' id '~' ; if : '~if' id ':' statements ':~' | '~if' id ':' st...
Update grammar.g4
Update grammar.g4
ANTLR
apache-2.0
tiagobento/watertemplate-engine,codefacts/watertemplate-engine,codefacts/watertemplate-engine,tiagobento/watertemplate-engine
c881b853c2a70c7460d0bcd798cfaf5aae0f4c0e
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
java-vtl-parser/src/main/antlr4/no/ssb/vtl/parser/VTL.g4
/*- * #%L * Java VTL * %% * Copyright (C) 2016 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
/*- * #%L * Java VTL * %% * Copyright (C) 2016 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
Adjust the grammar to support sum both in hierarchy and aggregation
Adjust the grammar to support sum both in hierarchy and aggregation
ANTLR
apache-2.0
statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl
7d39a4accfa99dc8e72482a8181c62018d696bd7
tinybasic/tinybasic.g4
tinybasic/tinybasic.g4
/* BSD License Copyright (c) 2017, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
/* BSD License Copyright (c) 2017, Tom Everett All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
Remove empty set symbol
Remove empty set symbol
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
7544ddbdf3bfd166d9513ba352a322af861f4dfd
annis-service/src/main/antlr4/annis/ql/AqlLexer.g4
annis-service/src/main/antlr4/annis/ql/AqlLexer.g4
/* * Copyright 2013 SFB 632. * * 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 2013 SFB 632. * * 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...
use regex style character classes
use regex style character classes
ANTLR
apache-2.0
pixeldrama/ANNIS,amir-zeldes/ANNIS,amir-zeldes/ANNIS,zangsir/ANNIS,korpling/ANNIS,zangsir/ANNIS,amir-zeldes/ANNIS,pixeldrama/ANNIS,pixeldrama/ANNIS,pixeldrama/ANNIS,zangsir/ANNIS,amir-zeldes/ANNIS,korpling/ANNIS,zangsir/ANNIS,pixeldrama/ANNIS,pixeldrama/ANNIS,amir-zeldes/ANNIS,zangsir/ANNIS,zangsir/ANNIS,korpling/ANNIS...
f70e40f74099d3c9ed4c46a84d58cb41d4639147
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
4f95ea7c09f479c4e6057bf30402fe2bdd054934
java/grammars/org/antlr/codebuff/ANTLRv4Lexer.g4
java/grammars/org/antlr/codebuff/ANTLRv4Lexer.g4
/* * [The "BSD license"] * Copyright (c) 2014 Terence Parr * Copyright (c) 2014 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
/* * [The "BSD license"] * Copyright (c) 2014 Terence Parr * Copyright (c) 2014 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...
fix antlr lexer
fix antlr lexer
ANTLR
bsd-2-clause
antlr/codebuff,antlr/codebuff,MorganZhang100/codebuff,antlr/codebuff,MorganZhang100/codebuff
96d8285f3c6b35b7492756733a3f54af248db958
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...
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...
add question number string rule
add question number string rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
57ee378563ffd78267d32ec4e18437c4cb962389
projects/batfish/src/main/antlr4/org/batfish/grammar/palo_alto_nested/PaloAltoNestedLexer.g4
projects/batfish/src/main/antlr4/org/batfish/grammar/palo_alto_nested/PaloAltoNestedLexer.g4
lexer grammar PaloAltoNestedLexer; options { superClass = 'org.batfish.grammar.palo_alto_nested.parsing.PaloAltoNestedBaseLexer'; } @members { boolean enableIPV6_ADDRESS = true; boolean enableIP_ADDRESS = true; boolean enableDEC = true; @Override public String printStateVariables() { StringBuilder sb = new Str...
lexer grammar PaloAltoNestedLexer; options { superClass = 'org.batfish.grammar.palo_alto_nested.parsing.PaloAltoNestedBaseLexer'; } CLOSE_BRACE : '}' ; CLOSE_BRACKET : ']' ; CLOSE_PAREN : ')' ; // Handle developer and RANCID-header-style line comments COMMENT_LINE : F_WhitespaceChar* [!#] {lastToke...
delete unused members (#6786)
PAN: delete unused members (#6786)
ANTLR
apache-2.0
batfish/batfish,intentionet/batfish,dhalperi/batfish,intentionet/batfish,arifogel/batfish,intentionet/batfish,intentionet/batfish,arifogel/batfish,intentionet/batfish,batfish/batfish,arifogel/batfish,dhalperi/batfish,dhalperi/batfish,batfish/batfish
99dcd2d03ebb1983c4d3d8746d5e6a7a21d55139
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DMLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-mysql/src/main/antlr4/imports/mysql/DMLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
delete some expr
delete some expr
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
8538aacb6ba4b047989c12620dea91eedfb7ea93
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 hexadecimalLiterals
add hexadecimalLiterals
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
e9367896ec9b25230c6dc8d2be91bf94cfe00707
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/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 modifyColumn
rename to modifyColumn
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
cad3eff27639f0477042019c1bd01ae062620023
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
adjust sequence of rules
adjust sequence of rules
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
7830568a8ed115f42546d69d0409dbf3aad6a56f
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
adjust the sequences of statements for pg
adjust the sequences of statements for pg
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
bb2cd3086abd3af927c1931e81901d4a4a3755d8
src/main/antlr/mrtim/sasscompiler/grammar/Sass.g4
src/main/antlr/mrtim/sasscompiler/grammar/Sass.g4
grammar Sass; NL : '\r'? '\n' -> skip; WS : (' ' | '\t' | NL) -> skip; COMMENT_START: '/*'; COMMENT_END: '*/'; COMMENT: COMMENT_START .*? COMMENT_END; LINE_COMMENT : '//' ~[\r\n]* NL? -> skip; DSTRING : '"' ('\\"' | ~'"')* '"'; SSTRING : '\'' ('\\\'' | ~'\'')* '\''; URL : 'url' LPAREN ~[)]* RPAREN; COMMA : ','; SEMICO...
grammar Sass; NL : '\r'? '\n' -> skip; WS : (' ' | '\t' | NL) -> skip; COMMENT_START: '/*'; COMMENT_END: '*/'; COMMENT: COMMENT_START .*? COMMENT_END; LINE_COMMENT : '//' ~[\r\n]* NL? -> skip; DSTRING : '"' ('\\"' | ~'"')* '"'; SSTRING : '\'' ('\\\'' | ~'\'')* '\''; URL : 'url' LPAREN ~[)]* RPAREN; COMMA : ','; SEMICO...
Handle extra commas in selectors
Handle extra commas in selectors
ANTLR
mit
mr-tim/sass-compiler,mr-tim/sass-compiler
c74f54c0893fa81c18ca9085034287d9aa9f2d93
javascript/javascript/JavaScriptLexer.g4
javascript/javascript/JavaScriptLexer.g4
/* * The MIT License (MIT) * * Copyright (c) 2014 by Bart Kiers (original author) and Alexandre Vitorelli (contributor -> ported to CSharp) * Copyright (c) 2017-2020 by Ivan Kochurkin (Positive Technologies): added ECMAScript 6 support, cleared and transformed to the universal grammar. * Copyright (c) 2018 by ...
/* * The MIT License (MIT) * * Copyright (c) 2014 by Bart Kiers (original author) and Alexandre Vitorelli (contributor -> ported to CSharp) * Copyright (c) 2017-2020 by Ivan Kochurkin (Positive Technologies): added ECMAScript 6 support, cleared and transformed to the universal grammar. * Copyright (c) 2018 by ...
enable yield in non strict mode
javascript: enable yield in non strict mode
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
3e60f7d0271458ea492b4fff2ce5684571578e37
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...
Add lexer rules + simple grammar for copx/update
Add lexer rules + simple grammar for copx/update
ANTLR
bsd-2-clause
clementval/claw-compiler,clementval/claw-compiler
e1e23f70cbd78d2addc0b35312a5d0bc3eb004d0
sharding-jdbc-ddl-parser/src/main/antlr4/io/shardingsphere/parser/antlr/postgre/PostgreDDL.g4
sharding-jdbc-ddl-parser/src/main/antlr4/io/shardingsphere/parser/antlr/postgre/PostgreDDL.g4
grammar PostgreDDL; import PostgreKeyword, DataType, Keyword, BaseRule,DDLBase,MySQLDQL,DQLBase,Symbol; createTable: createBasicTable |createTypeTable |createTableForPartition ; createBasicTable: createTableHeader createDefinitions inheritClause? partitionClause? tableWithClause? commitClause? tableSpaceC...
grammar PostgreDDL; import PostgreKeyword, DataType, Keyword, BaseRule,DDLBase,MySQLDQL,DQLBase,Symbol; createIndex: CREATE UNIQUE? INDEX CONCURRENTLY? ((IF NOT EXISTS)? indexName)? ON tableName indexType? keyParts withStorageParameters? tableSpaceClause? whereClause? ; alterIndex: (alterIndexName(...
add index regular
add index regular
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
fa96367cfa6fd68452d70751ae91b8adf28a87ad
src/main/antlr/BMoThParser.g4
src/main/antlr/BMoThParser.g4
parser grammar BMoThParser; options { tokenVocab=BMoThLexer; } @header { package de.bmoth.antlr; } start : parse_unit EOF # ParseUnit ; parse_unit : MACHINE IDENTIFIER (clauses+=machine_clause)* END # MachineParseUnit ; machine_clause : clauseName=(PROPERTIES|INVARIANT) pred=pred...
parser grammar BMoThParser; options { tokenVocab=BMoThLexer; } @header { package de.bmoth.antlr; } start : parse_unit EOF # ParseUnit ; parse_unit : MACHINE IDENTIFIER (clauses+=machine_clause)* END # MachineParseUnit ; machine_clause : clauseName=(PROPERTIES|INVARIANT) pred=pred...
update grammar
update grammar
ANTLR
mit
hhu-stups/bmoth
7ffe3ad24a4d28e6d2a6e1e539bc281f2fdd29f1
core/src/main/antlr4/nl/eernie/jmoribus/Gherkins.g4
core/src/main/antlr4/nl/eernie/jmoribus/Gherkins.g4
grammar Gherkins; story : feature? prologue? scenario*; feature : feature_keyword feature_title feature_content ; feature_content : (NEWLINE SPACE SPACE line)* ; feature_title : line ; prologue : NEWLINE*? prologue_keyword (NEWLINE step)+; scenario : NEWLINE*? scenario_keyword scenari...
grammar Gherkins; story : feature? prologue? scenario*; feature : feature_keyword feature_title feature_content ; feature_content : (NEWLINE SPACE SPACE line)* ; feature_title : line ; prologue : NEWLINE*? prologue_keyword (NEWLINE step)+; scenario : NEWLINE*? scenario_keyword scenari...
make it possible to have whitelines between steps
make it possible to have whitelines between steps
ANTLR
mit
Eernie/JMoribus
f05d7d207be707c296aa9bb62530c3f793238e36
src/net/hillsdon/reviki/wiki/renderer/creole/Creole.g4
src/net/hillsdon/reviki/wiki/renderer/creole/Creole.g4
/* Todo: * - Comments justifying and explaining every rule. * - Allow arbitrarily-nested lists (see actions/attributes) */ parser grammar Creole; options { tokenVocab=CreoleTokens; superClass=ContextSensitiveParser; } /* ***** Top level elements ***** */ creole : (block (LineBreak | ParBreak)*)* EOF ; ...
/* Todo: * - Comments justifying and explaining every rule. * - Allow arbitrarily-nested lists (see actions/attributes) */ parser grammar Creole; options { tokenVocab=CreoleTokens; superClass=ContextSensitiveParser; } /* ***** Top level elements ***** */ creole : (block (LineBreak | ParBreak)*)* EOF ; ...
Allow linebreaks before an escaped break when inline
Allow linebreaks before an escaped break when inline
ANTLR
apache-2.0
strr/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,CoreFiling/reviki,strr/reviki,strr/reviki,ashirley/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki
fd63360a9cafffc9f1a591deddd51096dd350ce3
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("//"); ...
Make matching 'Any' tokens much more memory efficient, by considering the common case
Make matching 'Any' tokens much more memory efficient, by considering the common case
ANTLR
apache-2.0
strr/reviki,CoreFiling/reviki,ashirley/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,strr/reviki
6f5aee9ec79b5cc7e153a2d30fc9f935f39e9286
src/main/java/org/shirolang/interpreter/Shiro.g4
src/main/java/org/shirolang/interpreter/Shiro.g4
grammar Shiro; shiro : includeStmt* shiroStmt* EOF ; includeStmt: INCLUDE STRING_LITERAL NEWLINE; shiroStmt : anonymousGraphStmt | nodeDecl | graphDecl | stateDecl | NEWLINE ; stateDecl : STATE stateName BEGIN NEWLINE stateGraphSelection ...
grammar Shiro; shiro : includeStmt* shiroStmt* EOF ; includeStmt: INCLUDE STRING_LITERAL NEWLINE; shiroStmt : anonymousGraphStmt | nodeDecl | graphDecl | stateDecl | NEWLINE ; stateDecl : STATE stateName BEGIN NEWLINE stateGraphSelection ...
Add function references
Add function references
ANTLR
mit
jrguenther/shiro
2cdbe83f9c03aac6f8c085c687ac24184dff2366
oap-server/generate-tool-grammar/src/main/antlr4/org/apache/skywalking/oal/tool/grammar/OALParser.g4
oap-server/generate-tool-grammar/src/main/antlr4/org/apache/skywalking/oal/tool/grammar/OALParser.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 ...
Move zipkin and jaeger span source to disable from metrics. (#2842)
Move zipkin and jaeger span source to disable from metrics. (#2842)
ANTLR
apache-2.0
ascrutae/sky-walking,apache/skywalking,ascrutae/sky-walking,apache/skywalking,OpenSkywalking/skywalking,apache/skywalking,apache/skywalking,ascrutae/sky-walking,OpenSkywalking/skywalking,apache/skywalking,ascrutae/sky-walking,apache/skywalking,apache/skywalking
d3d0fbf0fd4cc70ba3ee6456f3526b1c391137ea
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
sharding-core/sharding-core-parse/sharding-core-parse-postgresql/src/main/antlr4/imports/postgresql/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 alterClause_ rule
modify alterClause_ rule
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
a79c9ec18327bda3bd97f776639fdf1dc9dfdffb
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
grammar DruidSQL; @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.metamx.druid.query.dimension.*; import com.metamx.druid.*; import com.google.common.base.*; import com.google.common.collect.Lists; import org.joda.time.*; ...
grammar DruidSQL; @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.metamx.druid.query.dimension.*; import com.metamx.druid.*; import com.google.common.base.*; import com.google.common.collect.Lists; import org.joda.time.*; ...
fix some issues with negative numbers
fix some issues with negative numbers
ANTLR
apache-2.0
kevintvh/druid,dkhwangbo/druid,penuel-leo/druid,druid-io/druid,amikey/druid,cocosli/druid,Fokko/druid,knoguchi/druid,metamx/druid,767326791/druid,tubemogul/druid,redBorder/druid,lcp0578/druid,milimetric/druid,solimant/druid,Kleagleguo/druid,noddi/druid,winval/druid,gianm/druid,minewhat/druid,smartpcr/druid,andy256/drui...
3c710c14f5e9dc0d1c93a5577430d1be977c0d7a
PS.g4
PS.g4
grammar PS; options { language=Python2; } WS: [ \t\r\n]+ -> skip; ADD: '+'; SUB: '-'; MUL: '*'; DIV: '/'; L_PAREN: '('; R_PAREN: ')'; L_BRACE: '{'; R_BRACE: '}'; L_BRACKET: '['; R_BRACKET: ']'; BAR: '|'; FUNC_LIM: '\\lim'; LIM_APPROACH_SYM: '\\to' | '\\rightarrow' | '\\Rightarrow' | '\\longrightarrow' | '\\L...
grammar PS; options { language=Python2; } WS: [ \t\r\n]+ -> skip; ADD: '+'; SUB: '-'; MUL: '*'; DIV: '/'; L_PAREN: '('; R_PAREN: ')'; L_BRACE: '{'; R_BRACE: '}'; L_BRACKET: '['; R_BRACKET: ']'; BAR: '|'; FUNC_LIM: '\\lim'; LIM_APPROACH_SYM: '\\to' | '\\rightarrow' | '\\Rightarrow' | '\\longrightarrow' | '\\L...
handle expressions with floating braces, e.g. {a+b} means a+b
handle expressions with floating braces, e.g. {a+b} means a+b
ANTLR
mit
augustt198/latex2sympy
7cfb46849d69decd54a72c83caebc4dd24f2bfff
reo-compiler/src/main/antlr4/nl/cwi/reo/parse/Reo.g4
reo-compiler/src/main/antlr4/nl/cwi/reo/parse/Reo.g4
grammar Reo; /** * Generic structure */ file : (comp | defn)* EOF ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' comp* '}' # defnComposed ; comp : ID assign? nodeset # compReference | 'for' ID '=' expr '...' expr '{' comp* '}' # compForLoop ; at...
grammar Reo; /** * Generic structure */ file : (comp | defn)* EOF ; defn : 'define' ID params? portset '{' atom '}' # defnAtomic | 'define' ID params? nodeset '{' comp* '}' # defnComposed ; comp : ID assign? nodeset # compReference | 'for' ID '='...
Update Reo.g4
Update Reo.g4
ANTLR
mit
kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo-compiler,kasperdokter/Reo
f35a22d64ee5edae055850b1e93495b2299dc537
model/stratus/src/main/antlr4/org/xtuml/stratus/parser/MaslLexer.g4
model/stratus/src/main/antlr4/org/xtuml/stratus/parser/MaslLexer.g4
lexer grammar MaslLexer; //============================================================================================================== //============================================================================================================== // // Lexer // //==================================================...
lexer grammar MaslLexer; //============================================================================================================== //============================================================================================================== // // Lexer // //==================================================...
fix issue with parsing real literals with multiple fraction digits
fix issue with parsing real literals with multiple fraction digits
ANTLR
apache-2.0
leviathan747/mc,cortlandstarrett/mc,leviathan747/mc,xtuml/mc,leviathan747/mc,cortlandstarrett/mc,cortlandstarrett/mc,leviathan747/mc,xtuml/mc,lwriemen/mc,lwriemen/mc,leviathan747/mc,lwriemen/mc,lwriemen/mc,cortlandstarrett/mc,xtuml/mc,xtuml/mc,xtuml/mc,xtuml/mc,cortlandstarrett/mc,lwriemen/mc,cortlandstarrett/mc,lwriem...
9840716871b4592d7b7fbb8445cf079ac899086f
src/main/antlr4/org/morphling/tuberbasic/TuberBasic.g4
src/main/antlr4/org/morphling/tuberbasic/TuberBasic.g4
grammar TuberBasic; /* c.f. https://github.com/antlr/grammars-v4/ */ basicfile : statements ; statements : statement ('\n' statement)* ; statement : print | end ; print : 'PRINT' formatstring=stringLiteral (expression)* ; end : 'END' ; expression : num...
grammar TuberBasic; /* c.f. https://github.com/antlr/grammars-v4/ */ basicfile : statements ; statements : statement ('\n' statement)* ; statement : print | end | fornext | cond ; fornext : 'FOR' variable 'FROM' expression 'TO' expression '\n' statements '\n' 'N...
Extend grammar to hopefully be able to parse the Fizz Buzz program.
Extend grammar to hopefully be able to parse the Fizz Buzz program.
ANTLR
mit
fehrenbach/tuber-basic
8eae1ccae4cb76b5bdfb12e429ccc54316062f27
turin-parser/src/main/antlr4/me/tomassetti/parser/antlr/TurinParser.g4
turin-parser/src/main/antlr4/me/tomassetti/parser/antlr/TurinParser.g4
parser grammar TurinParser; options { tokenVocab = TurinLexer; } @header { } turinFile: namespace=namespaceDecl nls (imports+=importDeclaration)* (members+=fileMember)* EOF; // Base nls: NL+; qualifiedId: (parts+=ID POINT)* parts+=ID; // Namespace namespaceDecl: NAMESPACE_KW name=qual...
parser grammar TurinParser; options { tokenVocab = TurinLexer; } @header { } turinFile: namespace=namespaceDecl nls (imports+=importDeclaration)* (members+=fileMember)* EOF; // Base nls: NL+; qualifiedId: (parts+=ID POINT)* parts+=ID; // Namespace namespaceDecl: NAMESPACE_KW name=qual...
correct parser
correct parser
ANTLR
apache-2.0
ftomassetti/turin-programming-language,ftomassetti/turin-programming-language
a6242f91da62d4ad3113a56012a6d4943dfa437d
sharding-core/src/main/antlr4/imports/SQLServerKeyword.g4
sharding-core/src/main/antlr4/imports/SQLServerKeyword.g4
lexer grammar SQLServerKeyword; import Symbol; ABORT_AFTER_WAIT : A B O R T UL_ A F T E R UL_ W A I T ; ACTION : A C T I O N ; ALGORITHM : A L G O R I T H M ; ALLOW_PAGE_LOCKS : A L L O W UL_ P A G E UL_ L O C K S ; ALLOW_ROW_LOCKS : A L L O W UL_ R O W UL_ L O C K S ; ALL...
lexer grammar SQLServerKeyword; import Symbol; ABORT_AFTER_WAIT : A B O R T UL_ A F T E R UL_ W A I T ; ACTION : A C T I O N ; ALGORITHM : A L G O R I T H M ; ALLOW_PAGE_LOCKS : A L L O W UL_ P A G E UL_ L O C K S ; ALLOW_ROW_LOCKS : A L L O W UL_ R O W UL_ L O C K S ; ALL...
remove common keyword
remove common keyword
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
2d17610c9b4b4546296698ee1f1d156a9a494138
prolog.g4
prolog.g4
/* BSD License Copyright (c) 2013, 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) 2013, 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...
implement operators, try to fix term/clause ambiguity
implement operators, try to fix term/clause ambiguity
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
7512032bc710b2deb0e5845f7c3c32ad5975859a
sharding-core/src/main/antlr4/imports/PostgreSQLDCLStatement.g4
sharding-core/src/main/antlr4/imports/PostgreSQLDCLStatement.g4
grammar PostgreSQLDCLStatement; import PostgreSQLKeyword, Keyword, BaseRule, DataType, Symbol; createUser : CREATE USER roleName (WITH? roleOptions)? ; roleOption : SUPERUSER | NOSUPERUSER | CREATEDB | NOCREATEDB | CREATEROLE | NOCREATEROLE | INHERIT | NOINHERIT | LOGIN ...
grammar PostgreSQLDCLStatement; import PostgreSQLKeyword, Keyword, BaseRule, DataType, Symbol; createUser : CREATE USER roleName (WITH? roleOptions)? ; roleOption : SUPERUSER | NOSUPERUSER | CREATEDB | NOCREATEDB | CREATEROLE | NOCREATEROLE | INHERIT | NOINHERIT | LOGIN ...
add postgre drop role rule
add postgre drop role rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere
350ca0487d343053827f34564069b6c6df8608bc
src/main/antlr/ActionLanguage.g4
src/main/antlr/ActionLanguage.g4
grammar ActionLanguage; ACS: 'ACS'; AFTER: 'after'; ALWAYS: 'always'; AT: 'at'; CAUSES: 'causes'; EVER: 'ever'; GENERALLY: 'generally'; IF: 'if'; IMPOSSIBLE: 'imnposible'; INITIALLY: 'initially'; INVOKES: 'invokes'; INVOLVED: 'involved'; NOT: 'not'; OBS: 'OBS'; PERFORMED: 'perfomed'; RELEASES: 'releases'; TRIGGERS: 't...
grammar ActionLanguage; ACS: 'ACS'; AFTER: 'after'; ALWAYS: 'always'; AT: 'at'; CAUSES: 'causes'; EVER: 'ever'; GENERALLY: 'generally'; IF: 'if'; IMPOSSIBLE: 'imnposible'; INITIALLY: 'initially'; INVOKES: 'invokes'; INVOLVED: 'involved'; NOT: 'not'; OBS: 'OBS'; PERFORMED: 'perfomed'; RELEASES: 'releases'; TRIGGERS: 't...
Create whole language grammar
Create whole language grammar
ANTLR
isc
janisz/knowledge-representation,janisz/knowledge-representation
3ed9d6519c5838650157c6f3819949a7da36d363
VineScriptLib/Compiler/VineParser.g4
VineScriptLib/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...
fix catching error alternative for dictionnary creation
Grammar: fix catching error alternative for dictionnary creation
ANTLR
mit
julsam/VineScript
8f8e39c92d41938a5f9299476482c89157246324
g4/math.g4
g4/math.g4
grammar MathExcel; prog : expr+; expr: expr op=('*'|'/'|'%') expr # MulDiv | expr op=('+'|'-') expr # AddSub | NUM | STRING | PARAMETER | '(' expr ')' # parens ; NUM : 0 ('.' [0-9]+)? | [1-9][0-9]* ('.' [0-9]+)? ; STRING : '\'' ('\\' . | . ...
添加 g4文件
添加 g4文件
ANTLR
apache-2.0
toolgood/ToolGood.Algorithm,toolgood/ToolGood.Algorithm
d7fd6dc649b9cc630abef4397f701cb3e931e69f
src/main/antlr4/com/sri/ai/praise/sgsolver/hogm/antlr/HOGM.g4
src/main/antlr4/com/sri/ai/praise/sgsolver/hogm/antlr/HOGM.g4
grammar HOGM; model : statements+=statement* EOF ; statement : declaration | rule_definition ; declaration : sort_decl | random_variable_decl ; sort_decl // sort symbol [ ":" ( number | "Unknown" ) [ ", " constant+ ] ] : SORT name=symbol (':' size=(INTEGE...
Add initial version of Symbolic Generalized HOGM language.
Add initial version of Symbolic Generalized HOGM language. git-svn-id: https://aic-praise.googlecode.com/svn/trunk@1402 e74e62f3-1872-5a1b-a7a8-c7220c51b9cb Former-commit-id: 97510800ce6c47d269c43896f41f4098562e250d
ANTLR
bsd-3-clause
aic-sri-international/aic-praise,aic-sri-international/aic-praise
be55977d99e2e1eda5c53c10860cec3bccd16d00
pattern_grammar/STIXPattern.g4
pattern_grammar/STIXPattern.g4
grammar STIXPattern; pattern : observationExpressions ; observationExpressions : <assoc=left> observationExpressions FOLLOWEDBY observationExpressions | observationExpressionOr ; observationExpressionOr : <assoc=left> observationExpressionOr OR observationExpressionOr | observationExpressionAnd ; o...
Add STIX Pattern grammar.
Add STIX Pattern grammar.
ANTLR
bsd-3-clause
oasis-open/cti-stix2-json-schemas
a274f5f75568726516e71af3a2aebef40a0df85a
grammars/JSON.g4
grammars/JSON.g4
grammar JSON; json : object | array ; object : '{' pair (',' pair)* '}' | '{' '}' ; pair : STRING ':' value ; array : '[' value (',' value)* ']' | '[' ']' ; value : STRING | NUMBER | object | array | 'true' | 'false' | 'null' ; STRING : '"' (ESC | ~ ["\...
Add JSON grammar
Add JSON grammar
ANTLR
apache-2.0
premun/ingrid
154c7d4d088e347cd9bff9e8b1e5884f3ef34946
objc.g4
objc.g4
// Converted to ANTLR 4 by Terence Parr; added @property and a few others. // Seems to handle stuff like this except for blocks: // https://google-api-objectivec-client.googlecode.com/svn/trunk/Examples/ShoppingSample/ShoppingSampleWindowController.m /** * ObjectiveC version 2 * based on an LL ansic grammars and * and...
add objc-grammer file.
add objc-grammer file.
ANTLR
mit
johndpope/objc2swift
39753cb0e90cff1c5ac44f4868da6f8dc53a05e6
src/main/antlr/Scheme.g4
src/main/antlr/Scheme.g4
grammar Scheme; options { language = Java; } myrule: '(' IDENTIFIER ')' ; // Lexer fragment INTRALINE_WHITESPACE : [ \t]; fragment LINE_ENDING : '\n' | '\r\n' | '\r'; LPAREN: '('; RPAREN: ')'; IDENTIFIER : INITIAL SUBSEQUENT* | '|' SYMBOL_ELEMENT* '|' | PECULIAR_IDENTIFIER ; f...
Add scheme lexer rules
Add scheme lexer rules
ANTLR
apache-2.0
OrangeShark/citrus-scheme
916e3fc8f8ecec714d16216c381b467415ac4b9b
Composer.g4
Composer.g4
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ grammar Composer; stat: assign NEWLINE {console.log("create new");} | connect NEWLINE {console.log("connect new");} ...
Create Composer.g4
Create Composer.g4
ANTLR
mit
hanwencheng/ConnectLang
fcab1adb7b50e101217cd44801d30a39f6a52701
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 ;
add programUnit
add programUnit
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
3fc0afb03decb1d7a63a543779a13ffadf73f3ae
pinot-common/src/main/antlr4/com/linkedin/pinot/pql/parsers/PQL2.g4
pinot-common/src/main/antlr4/com/linkedin/pinot/pql/parsers/PQL2.g4
/** * Copyright (C) 2014-2016 LinkedIn Corp. (pinot-core@linkedin.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
/** * Copyright (C) 2014-2016 LinkedIn Corp. (pinot-core@linkedin.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
Remove keyword 'LIKE' from PQL grammar.
Remove keyword 'LIKE' from PQL grammar. Removing the keyword 'LIKE' from PQL grammar as it is not supported currently.
ANTLR
apache-2.0
apucher/pinot,fx19880617/pinot-1,sajavadi/pinot,sajavadi/pinot,linkedin/pinot,fx19880617/pinot-1,apucher/pinot,linkedin/pinot,apucher/pinot,fx19880617/pinot-1,sajavadi/pinot,linkedin/pinot,fx19880617/pinot-1,fx19880617/pinot-1,linkedin/pinot,sajavadi/pinot,apucher/pinot,apucher/pinot,sajavadi/pinot,linkedin/pinot
be11a093b0491fb1542dba0adfea6202e4c9fbf1
watertemplate-engine/grammar.g4
watertemplate-engine/grammar.g4
============================================== grammar ============================================== prop_name_head : Upper- or lowercase letter A through Z ; prop_name_body : | prop_name_head ; prop_name : prop_name_head | prop_name_head prop_name_body ; id : prop_name | prop_name.id ; -------...
Create grammar.g4
Create grammar.g4
ANTLR
apache-2.0
tiagobento/watertemplate-engine,codefacts/watertemplate-engine,codefacts/watertemplate-engine,tiagobento/watertemplate-engine
ce1ba5ae35aa6289fd32e09d897fba3f2f8cc64e
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 the case of WikiWords at the start of the page
Handle the case of WikiWords at the start of the page
ANTLR
apache-2.0
CoreFiling/reviki,strr/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki
dcee7c86c3a5f3bcb1e51caa0180704120338bdd
java/grammars/org/antlr/codebuff/SQLite.g4
java/grammars/org/antlr/codebuff/SQLite.g4
/* * The MIT License (MIT) * * Copyright (c) 2014 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...
add grammar
add grammar
ANTLR
bsd-2-clause
antlr/codebuff,antlr/codebuff,antlr/codebuff
66efa8a953e33d1eda7199afd78a4117400abd38
src/grammar/LLS1.g4
src/grammar/LLS1.g4
// LLS1 (Logical specification language-1) grammar LLS1; statements : (statement '.')+ ; //---------------------------------------------------------- // C,L,P-terms and statement //---------------------------------------------------------- c : Name # NamedC | 'NOT' c # notC | c ':' variable # conc...
Add grammar for LLS1
Add grammar for LLS1
ANTLR
mit
DMasherov/bkm-lib
f97d1e038e14825964c757f16080f755dc656dd5
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 alterClause_ rule
modify alterClause_ rule
ANTLR
apache-2.0
apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,apache/incubator-shardingsphere
af47f7f19f1056ef0aeb62cf771941bc09033184
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("//"); ...
Allow file:// raw urls
Allow file:// raw urls
ANTLR
apache-2.0
strr/reviki,strr/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,strr/reviki,CoreFiling/reviki,ashirley/reviki,ashirley/reviki,ashirley/reviki,CoreFiling/reviki,CoreFiling/reviki
cbb36f12618776325394b28081a20c56218ff55a
src/Track.g4
src/Track.g4
grammar Track; track: track_decl decl* ; track_decl: 'track' '{' IDENT+ '}' ; decl: block_decl | channel_decl ; block_decl: IDENT '::' 'block' '{' block_body '}' ; block_body: (note)+ ; note: NOTENAME OCTAVE? LENGTH? ; channel_decl: IDENT '::' 'channel' WAVE '{' channel_body '}' ; channel_body: (block_name)+ ; blo...
Add first attempt at track grammar
Add first attempt at track grammar
ANTLR
mit
hdgarrood/klasma
24330893ab89730a585247345a58736253a5cebf
sharding-core/src/main/antlr4/imports/PostgreSQLDALStatement.g4
sharding-core/src/main/antlr4/imports/PostgreSQLDALStatement.g4
grammar PostgreSQLDALStatement; import PostgreSQLKeyword, Keyword, BaseRule, DataType, Symbol; show : SHOW showParam ; showParam : ALL | SERVER_VERSION ;
add pg dal g4
add pg dal g4
ANTLR
apache-2.0
leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc,apache/incubator-shardingsphere,leeyazhou/sharding-jdbc
4e8df30012b876461014364d64bdc9390a95863b
src/main/antlr/ASP_Core2.g4
src/main/antlr/ASP_Core2.g4
grammar ASP_Core2; /* The ASP Core 2 grammar in ANTLR v4. It is extended a bit to parse widespread syntax used by gringo/clasp. */ program : statements? query?; statements : statement statements?; query : classical_literal QUERY_MARK; statement : CONS body DOT | head (CONS body?)? DOT | WCON...
Add ASP-Core-2 grammar
Add ASP-Core-2 grammar
ANTLR
bsd-2-clause
AntoniusW/Alpha,alpha-asp/Alpha,alpha-asp/Alpha
22f1c9fa0faa18151207f993967c971444d6f04d
modules/lang-painless/src/main/antlr/PainlessLexer.g4
modules/lang-painless/src/main/antlr/PainlessLexer.g4
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Remove @header we no longer need
Remove @header we no longer need
ANTLR
apache-2.0
coding0011/elasticsearch,HonzaKral/elasticsearch,ThiagoGarciaAlves/elasticsearch,C-Bish/elasticsearch,umeshdangat/elasticsearch,elasticdog/elasticsearch,geidies/elasticsearch,bawse/elasticsearch,ZTE-PaaS/elasticsearch,alexshadow007/elasticsearch,kalimatas/elasticsearch,JSCooke/elasticsearch,scorpionvicky/elasticsearch,...
3f7bd7d1c01e076f23986d464d5b1f824549c659
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
client/src/main/antlr4/com/metamx/druid/sql/antlr4/DruidSQL.g4
grammar DruidSQL; /* @lexer::header { package com.metamx.druid.sql.antlr; } */ /* TODO: handle both multiply / division, addition - subtraction unary minus */ @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.google.commo...
grammar DruidSQL; /* @lexer::header { package com.metamx.druid.sql.antlr; } */ /* TODO: handle both multiply / division, addition - subtraction unary minus */ @header { import com.metamx.druid.aggregation.post.*; import com.metamx.druid.aggregation.*; import com.metamx.druid.query.filter.*; import com.metamx.druid...
add group by
add group by
ANTLR
apache-2.0
cocosli/druid,knoguchi/druid,praveev/druid,Fokko/druid,andy256/druid,winval/druid,druid-io/druid,leventov/druid,KurtYoung/druid,andy256/druid,noddi/druid,kevintvh/druid,fjy/druid,jon-wei/druid,praveev/druid,kevintvh/druid,du00cs/druid,767326791/druid,yaochitc/druid-dev,haoch/druid,eshen1991/druid,penuel-leo/druid,taoch...
03de07d8fb0e9298ac9a3ea279880e04332da629
java-vtl-lexer/src/main/resources/kohl/hadrien/antlr4/clauses.g4
java-vtl-lexer/src/main/resources/kohl/hadrien/antlr4/clauses.g4
grammar clauses; clause : ( '[' ( rename | filter | keep | calc | attrcalc | aggregate ) ']' )+ ; // [ rename component as string, // component as string role = IDENTIFIER, // component as string role = MEASURE, // component as string role = ATTRIBUTE // ] rename : 'rename' renam...
Add clause grammar
Add clause grammar
ANTLR
apache-2.0
statisticsnorway/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl,hadrienk/java-vtl,statisticsnorway/java-vtl
018ddc5bbfc2443c1592cc7a844cd729f883be66
src/grammar/mantra/Mantra.g4
src/grammar/mantra/Mantra.g4
grammar Mantra; @header {package mantra;} compilationUnit : (function|clazz|interfaze|enumb)* EOF ; clazz : ('api'|'abstract')* 'class' ID typeArgumentNames? ('extends' type)? ('implements' type (',' type)*)? '{' clazzMember* function* '}' ; interfaze : 'api'?...
add initial grammar, copying from https://github.com/mantra/grammar/commit/76e3edfae18ab9004860d7c675b54587d0dfd24e
add initial grammar, copying from https://github.com/mantra/grammar/commit/76e3edfae18ab9004860d7c675b54587d0dfd24e
ANTLR
bsd-3-clause
mantra/compiler
e5eba68c9850c748b988ff7e7ee9dee656d04f2d
Rexx/RexxLexer.g4
Rexx/RexxLexer.g4
lexer grammar RexxLexer; // Main rules // %INCLUDE statement STMT_INCLUDE : Include_Statement ; // Skippable stuff LINE_COMMENT : Line_Comment_ -> channel(HIDDEN); BLOCK_COMMENT : Block_Comment_ ...
Create RexxLexer.g4
Create RexxLexer.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
0aa8b244725625b488b9fd43012038516b39a361
grammar/C.g4
grammar/C.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 notice, this list of cond...
Add full C grammar for reference
Add full C grammar for reference
ANTLR
mit
Sibert-Aerts/c2p,Sibert-Aerts/c2p,Sibert-Aerts/c2p
2fe8e94f5de6d799558aa7b199c07603fba9541a
atl/ATL.g4
atl/ATL.g4
/* Copyright 2015 Spikes N.V. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
Add (lowercase folder)
Add (lowercase folder)
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