id
int64
0
537
file_name
stringlengths
4
38
file_path
stringlengths
16
123
content
stringlengths
126
1.72M
size
int64
126
1.8M
language
stringclasses
1 value
extension
stringclasses
1 value
total_lines
int64
4
74.3k
avg_line_length
float64
6.01
89.8
max_line_length
int64
33
3.68k
alphanum_fraction
float64
0.33
0.95
repo_name
stringclasses
95 values
repo_stars
int64
0
50
repo_forks
int64
0
14
repo_open_issues
int64
0
34
repo_license
stringclasses
7 values
repo_extraction_date
stringclasses
11 values
exact_duplicates_stackv1
bool
2 classes
exact_duplicates_stackv2
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
2 classes
0
TSqlParserCore.g4
christianhelle_sqlcequery/Source/TSqlParser/TSqlParserCore.g4
/* T-SQL (Transact-SQL, MSSQL) grammar. The MIT License (MIT). Copyright (c) 2017, Mark Adams (madams51703@gmail.com) Copyright (c) 2015-2017, Ivan Kochurkin (kvanttt@gmail.com), Positive Technologies. Copyright (c) 2016, Scott Ure (scott@redstormsoftware.com). Copyright (c) 2016, Rui Zhang (ruizhang.ccs@gmail.com). Co...
137,629
ANTLR
.g4
3,822
29.89011
757
0.645182
christianhelle/sqlcequery
50
13
2
GPL-3.0
9/19/2024, 2:48:21 PM (Europe/Amsterdam)
false
false
true
true
1
TSqlLexerCore.g4
christianhelle_sqlcequery/Source/TSqlParser/TSqlLexerCore.g4
/* T-SQL (Transact-SQL, MSSQL) grammar. The MIT License (MIT). Copyright (c) 2017, Mark Adams (madams51703@gmail.com) Copyright (c) 2015-2017, Ivan Kochurkin (kvanttt@gmail.com), Positive Technologies. Copyright (c) 2016, Scott Ure (scott@redstormsoftware.com). Copyright (c) 2016, Rui Zhang (ruizhang.ccs@gmail.com). Co...
45,942
ANTLR
.g4
904
49.738938
95
0.359941
christianhelle/sqlcequery
50
13
2
GPL-3.0
9/19/2024, 2:48:21 PM (Europe/Amsterdam)
false
false
true
true
2
UnicodeClasses.g4
xcporter_MetaView/src/main/antlr/UnicodeClasses.g4
/** * Kotlin lexical grammar in ANTLR4 notation (Unicode classes) * * Taken from http://www.antlr3.org/grammar/1345144569663/AntlrUnicode.txt */ lexer grammar UnicodeClasses; UNICODE_CLASS_LL: '\u0061'..'\u007A' | '\u00B5' | '\u00DF'..'\u00F6' | '\u00F8'..'\u00FF' | '\u0101' | '\u0103' | '\u0105' | '\u010...
23,131
ANTLR
.g4
1,641
12.096892
74
0.466369
xcporter/MetaView
24
1
2
GPL-3.0
9/19/2024, 2:48:29 PM (Europe/Amsterdam)
true
true
true
true
3
KotlinLexer.g4
xcporter_MetaView/src/main/antlr/KotlinLexer.g4
/** * Kotlin lexical grammar in ANTLR4 notation */ lexer grammar KotlinLexer; import UnicodeClasses; // SECTION: lexicalGeneral ShebangLine : '#!' ~[\r\n]* ; DelimitedComment : '/*' ( DelimitedComment | . )*? '*/' -> channel(HIDDEN) ; LineComment : '//' ~[\r\n]* -> channel(HIDDEN...
12,067
ANTLR
.g4
453
24.328918
98
0.679574
xcporter/MetaView
24
1
2
GPL-3.0
9/19/2024, 2:48:29 PM (Europe/Amsterdam)
true
true
true
true
4
KotlinParser.g4
xcporter_MetaView/src/main/antlr/KotlinParser.g4
/** * Kotlin syntax grammar in ANTLR4 notation */ parser grammar KotlinParser; options { tokenVocab = KotlinLexer; } // SECTION: general kotlinFile : shebangLine? NL* fileAnnotation* packageHeader importList topLevelObject* EOF ; script : shebangLine? NL* fileAnnotation* packageHeader importList (sta...
17,095
ANTLR
.g4
741
18.82861
134
0.703154
xcporter/MetaView
24
1
2
GPL-3.0
9/19/2024, 2:48:29 PM (Europe/Amsterdam)
true
true
true
true
5
plsql.g4
datacamp_antlr-plsql/antlr_plsql/plsql.g4
/** * Oracle(c) PL/SQL 11g Parser * * Copyright (c) 2009-2011 Alexandre Porcelli <alexandre.porcelli@gmail.com> * Copyright (c) 2015 Ivan Kochurkin (KvanTTT, kvanttt@gmail.com). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
121,455
ANTLR
.g4
3,969
26.480474
198
0.548978
datacamp/antlr-plsql
17
14
6
AGPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
false
false
true
true
6
Delphi.g4
gotthardsen_Delphi-ANTRL4-Grammar/Delphi.g4
grammar Delphi; /* * Sonar Delphi Plugin * Copyright (C) 2010 SonarSource * dev@sonar.codehaus.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the Lic...
42,720
ANTLR
.g4
890
32.516854
204
0.367812
gotthardsen/Delphi-ANTRL4-Grammar
15
7
3
LGPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
false
true
false
true
7
MurphySDR-In3_Cu.g4
MillePoels_MurPhySDR/hardware/gerber-files/MurphySDR-In3_Cu.g4
%TF.GenerationSoftware,KiCad,Pcbnew,8.0.1*% %TF.CreationDate,2024-04-14T19:48:42+02:00*% %TF.ProjectId,start_1,73746172-745f-4312-9e6b-696361645f70,rev?*% %TF.SameCoordinates,Original*% %TF.FileFunction,Copper,L4,Inr*% %TF.FilePolarity,Positive*% %FSLAX46Y46*% G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit ...
368,403
ANTLR
.g4
14,526
24.361627
65
0.91815
MillePoels/MurPhySDR
13
1
1
GPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
false
false
false
false
8
Java.g4
le-moulin-studio_java-semantic-diff/src/main/antlr4/Java.g4
/* [The "BSD licence"] Copyright (c) 2013 Terence Parr, 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, th...
20,992
ANTLR
.g4
842
21.119952
107
0.623466
le-moulin-studio/java-semantic-diff
12
1
3
AGPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
true
true
true
true
9
UVLJava.g4
Universal-Variability-Language_uvl-parser/uvl/UVLJava.g4
grammar UVLJava; import UVLBase; @header { package uvl; } @lexer::members { // A queue where extra tokens are pushed on (see the NEWLINE lexer rule). private java.util.LinkedList<Token> tokens = new java.util.LinkedList<>(); // The stack that keeps track of the indentation level. private java.util.Stack<Integer...
4,403
ANTLR
.g4
126
29.52381
99
0.615258
Universal-Variability-Language/uvl-parser
10
8
8
LGPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
false
false
true
true
10
UVLBase.g4
Universal-Variability-Language_uvl-parser/uvl/UVLBase.g4
//This is the common part of the grammar. grammar grammar UVLBase; INDENT : '<INDENT>'; // this pattern should never match in actual input DEDENT : '<DEDENT>'; // this pattern should also never match featureModel: namespace? NEWLINE? includes? NEWLINE? imports? NEWLINE? features? NEWLINE? constraints? EOF; includes:...
5,119
ANTLR
.g4
123
38.569106
107
0.657512
Universal-Variability-Language/uvl-parser
10
8
8
LGPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
false
false
false
false
11
UVLPython.g4
Universal-Variability-Language_uvl-parser/uvl/UVLPython.g4
grammar UVLPython; import UVLBase; OPEN_PAREN : '(' {self.opened += 1;}; CLOSE_PAREN : ')' {self.opened -= 1;}; OPEN_BRACK : '[' {self.opened += 1;}; CLOSE_BRACK : ']' {self.opened -= 1;}; OPEN_BRACE : '{' {self.opened += 1;}; CLOSE_BRACE : '}' {self.opened -= 1;}; OPEN_COMMENT: '/*' {self.opened += 1;}; CLOSE_COMMENT...
522
ANTLR
.g4
15
33.266667
63
0.600791
Universal-Variability-Language/uvl-parser
10
8
8
LGPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
false
false
false
false
12
UVLJavaScript.g4
Universal-Variability-Language_uvl-parser/uvl/UVLJavaScript.g4
grammar UVLJavaScript; import UVLBase; @lexer::members { // Una cola donde se empujan los tokens adicionales (ver la regla del lexer NEWLINE). let tokens = []; // La pila que lleva un registro del nivel de indentación. let indents = []; // La cantidad de paréntesis, corchetes y llaves abiertos. let opened ...
820
ANTLR
.g4
24
31.958333
87
0.637975
Universal-Variability-Language/uvl-parser
10
8
8
LGPL-3.0
9/19/2024, 2:48:36 PM (Europe/Amsterdam)
false
false
false
false
13
vhdl.g4
klyone_HDLObf/src/vhdl.g4
// // Copyright (C) 2010-2014 Denis Gavrish // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This pro...
32,914
ANTLR
.g4
1,422
20.386779
149
0.682628
klyone/HDLObf
9
4
2
GPL-2.0
9/19/2024, 2:48:43 PM (Europe/Amsterdam)
true
true
true
true
14
Verilog2001.g4
klyone_HDLObf/src/Verilog2001.g4
/* [The "BSD licence"] Copyright (c) 2013 Terence Parr All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of co...
47,314
ANTLR
.g4
1,611
26.192427
360
0.686782
klyone/HDLObf
9
4
2
GPL-2.0
9/19/2024, 2:48:43 PM (Europe/Amsterdam)
false
false
true
true
15
IEC61131_3.g4
openbac_iec61131-parser/src/main/antlr/io/openbac/iec61131/IEC61131_3.g4
/* IEC61131 Grammar Copyright (C) 2018 Joerg Seitter This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versi...
21,707
ANTLR
.g4
933
20.577706
254
0.688968
openbac/iec61131-parser
9
4
0
AGPL-3.0
9/19/2024, 2:48:43 PM (Europe/Amsterdam)
false
false
false
false
16
ALF.g4
libresilicon_alf_parser/grammar/ALF.g4
grammar ALF; alf_statement: type = alf_type ( left_index = index? name = alf_name right_index = index? )? ('=' assign_value = alf_value)? ( ';' | '{' ( values += alf_value | ':' | ';')* '}' | '{' statements += alf_statement* '}' ); // See Syntax 1, 5.1 alf_type: identifier | '@' | ':'; alf_name: identifier...
25,092
ANTLR
.g4
826
28.523002
100
0.703045
libresilicon/alf_parser
7
4
3
GPL-3.0
9/19/2024, 2:48:51 PM (Europe/Amsterdam)
false
false
false
false
17
tsql.g4
datacamp_antlr-tsql/antlr_tsql/tsql.g4
/* T-SQL (Transact-SQL, MSSQL) grammar. The MIT License (MIT). Copyright (c) 2015-2016, Ivan Kochurkin (kvanttt@gmail.com), Positive Technologies. Copyright (c) 2016, Scott Ure (scott@redstormsoftware.com). Copyright (c) 2016, Rui Zhang (ruizhang.ccs@gmail.com). Copyright (c) 2016, Marcus Henriksson (kuseman80@gmail.co...
72,569
ANTLR
.g4
1,835
35.86376
199
0.496043
datacamp/antlr-tsql
7
5
4
AGPL-3.0
9/19/2024, 2:48:51 PM (Europe/Amsterdam)
false
false
true
true
18
PoeFilter.g4
smad2005_PoeFilterParser/PoeFilterParser/PoeFilter.g4
/* PoeFilterParser Copyright (C) 2015 smad2005 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This library is distribu...
4,494
ANTLR
.g4
126
32.166667
125
0.738183
smad2005/PoeFilterParser
6
3
4
LGPL-3.0
9/19/2024, 2:48:58 PM (Europe/Amsterdam)
false
false
false
false
19
potigol.g4
potigol_potigol-grammar/potigol.g4
/* Potigol - Grammar Copyright (C) 2014 Leonardo Lucena This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ...
5,039
ANTLR
.g4
140
32.142857
75
0.457869
potigol/potigol-grammar
6
2
0
GPL-2.0
9/19/2024, 2:48:58 PM (Europe/Amsterdam)
true
true
true
true
20
KotlinLexer.g4
Kotlin_kotlin-grammar-gpl2/KotlinLexer.g4
/** * Kotlin lexical grammar in ANTLR4 notation */ lexer grammar KotlinLexer; import UnicodeClasses; // SECTION: lexicalGeneral ShebangLine : '#!' ~[\r\n]* ; DelimitedComment : '/*' ( DelimitedComment | . )*? '*/' -> channel(HIDDEN) ; LineComment : '//' ~[\r\n]* -> channel(HIDDEN...
12,224
ANTLR
.g4
459
24.339869
98
0.679179
Kotlin/kotlin-grammar-gpl2
6
3
0
GPL-2.0
9/19/2024, 2:48:58 PM (Europe/Amsterdam)
false
true
true
true
21
KotlinParser.g4
Kotlin_kotlin-grammar-gpl2/KotlinParser.g4
/** * Kotlin syntax grammar in ANTLR4 notation */ parser grammar KotlinParser; options { tokenVocab = KotlinLexer; } // SECTION: general kotlinFile : shebangLine? NL* fileAnnotation* packageHeader importList topLevelObject* EOF ; script : shebangLine? NL* fileAnnotation* packageHeader importList (sta...
17,235
ANTLR
.g4
742
18.901617
138
0.700129
Kotlin/kotlin-grammar-gpl2
6
3
0
GPL-2.0
9/19/2024, 2:48:58 PM (Europe/Amsterdam)
false
true
true
true
22
XPath3.g4
exquery_xpath3-parser/src/main/antlr4/org/exquery/xpath/parser/XPath3.g4
/* Antlr v4 Grammar for XPath 3.0 Copyright (C) 2014 Adam Retter This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an...
20,125
ANTLR
.g4
462
39.91342
173
0.62763
exquery/xpath3-parser
6
1
4
AGPL-3.0
9/19/2024, 2:48:58 PM (Europe/Amsterdam)
false
false
false
false
23
XML11.g4
exquery_xpath3-parser/src/main/antlr4/imports/XML11.g4
/* Antlr v4 Grammar for Extensible Markup Language (XML) 1.1 Copyright (C) 2014 Adam Retter This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lice...
2,514
ANTLR
.g4
42
57.071429
322
0.609845
exquery/xpath3-parser
6
1
4
AGPL-3.0
9/19/2024, 2:48:58 PM (Europe/Amsterdam)
false
false
false
false
24
XMLNames11.g4
exquery_xpath3-parser/src/main/antlr4/imports/XMLNames11.g4
/* Antlr v4 Grammar for Namespaces in XML 1.1 Copyright (C) 2014 Adam Retter This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at you...
1,672
ANTLR
.g4
43
36.093023
78
0.703406
exquery/xpath3-parser
6
1
4
AGPL-3.0
9/19/2024, 2:48:58 PM (Europe/Amsterdam)
false
false
false
false
25
Sysy.g4
kylinsoft_lab2-3-antlr4/Sysy.g4
grammar Sysy; import SysyLex; compUnit : (decl | funcDef)* EOF; decl : constDecl | varDecl; constDecl : 'const' bType constDef (',' constDef)* ';' ; bType: 'int' | 'float'; constDef : ID ('[' constExp ']')* '=' constInitVal; constInitVal : constExp # scalarConstInitVal | '{' (constInitVal (',' constInitV...
2,123
ANTLR
.g4
84
21.511905
69
0.553563
kylinsoft/lab2-3-antlr4
4
0
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
true
false
26
SysyLex.g4
kylinsoft_lab2-3-antlr4/SysyLex.g4
lexer grammar SysyLex; // keyword INT : 'int'; FLOAT : 'float'; VOID : 'void'; CONST : 'const'; RETURN : 'return'; IF : 'if'; ELSE : 'else'; WHILE : 'while'; BREAK : 'break'; CONTINUE : 'continue'; // delimeter LP : '(' ; RP : ')' ; LB : '[' ; RB : ']' ; LC : '{' ; RC : '}' ; COMMA : ',' ; SEMICOLON : ';'; QUESTION ...
836
ANTLR
.g4
55
13.727273
43
0.488889
kylinsoft/lab2-3-antlr4
4
0
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
27
IEC61131Parser.g4
TUM-AIS_IEC611313ANTLRParser/IEC611313antlr/IEC61131Parser.g4
parser grammar IEC61131Parser; options {tokenVocab = IEC61131Lexer;} start : (library_element_declaration)* ; namespace_declaration : NAMESPACE INTERNAL? full_qualified_identifier using_directive* namespace_elements ; namespace_elements : data_type_declaration | function_declaration | class_declaration | i...
14,037
ANTLR
.g4
777
16.114543
129
0.763519
TUM-AIS/IEC611313ANTLRParser
4
1
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
28
IEC61131Lexer.g4
TUM-AIS_IEC611313ANTLRParser/IEC611313antlr/IEC61131Lexer.g4
lexer grammar IEC61131Lexer; /** Fragments for case insensitivity */ fragment A:('a'|'A'); fragment B:('b'|'B'); fragment C:('c'|'C'); fragment D:('d'|'D'); fragment E:('e'|'E'); fragment F:('f'|'F'); fragment G:('g'|'G'); fragment H:('h'|'H'); fragment I:('i'|'I'); fragment J:('j'|'J'); fragment K:('k'|'K'); fragment...
12,106
ANTLR
.g4
881
12.16118
104
0.518108
TUM-AIS/IEC611313ANTLRParser
4
1
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
29
hello_channels.g4
mobileink_lab_clj_antlr/src/antlr/hello_channels.g4
grammar hello_channels; @lexer::members { public static final int WHITESPACE = 3; } start : 'hello' ID ; ID : [a-zA-Z]+ ; WS : [ \t\r\n]+ -> channel(WHITESPACE) ; // send spaces, tabs, newlines, \r (Windows) to WHITESPACE channel
233
ANTLR
.g4
7
31.857143
107
0.681614
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
30
nil.g4
mobileink_lab_clj_antlr/src/antlr/nil.g4
// the null language - comments and whitespace only grammar nil; import lex_wscomments ; // @lexer::members { // public static final int WHITESPACE = 1; // public static final int COMMENTS = 2; // } start: ; // WS : [ \t\n\r] -> channel(WHITESPACE) ; // COMMENT : ';' .*? '\n' -> channel(COMMENTS) ;
306
ANTLR
.g4
10
29
51
0.658621
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
31
hello1.g4
mobileink_lab_clj_antlr/src/antlr/hello1.g4
grammar hello1; start : HI ID ; HI : 'hello' ; ID : [a-zA-Z]+ ; WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines, \r (Windows)
138
ANTLR
.g4
5
26
70
0.569231
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
32
ws.g4
mobileink_lab_clj_antlr/src/antlr/ws.g4
lexer grammar ws; // // Whitespace and comments // // if you import this into another lexer or parser // include these mbr defns: // @lexer::members { // public static final int WHITESPACE = 3; // public static final int COMMENTS = 5; // } WS : [ \t\r\n\u000C]+ -> channel(WHITESPACE) ; LINE_COMMENT : ';'...
357
ANTLR
.g4
15
21.8
50
0.651917
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
33
Clojure.g4
mobileink_lab_clj_antlr/src/antlr/Clojure.g4
// copy before editing! // original: https://github.com/antlr/grammars-v4/blob/master/clojure/Clojure.g4 /* Converted to ANTLR 4 by Terence Parr. Unsure of provence. I see it commited by matthias.koester for clojure-eclipse project on Oct 5, 2009: https://code.google.com/p/clojure-eclipse/ Seems to me La...
2,256
ANTLR
.g4
75
26.6
87
0.575885
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
true
true
true
true
34
Java.g4
mobileink_lab_clj_antlr/src/antlr/Java.g4
/* [The "BSD licence"] Copyright (c) 2013 Terence Parr, 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, th...
21,134
ANTLR
.g4
842
21.288599
107
0.624534
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
true
true
true
true
35
Java8.g4
mobileink_lab_clj_antlr/src/antlr/Java8.g4
/* [The "BSD licence"] Copyright (c) 2014 Terence Parr, 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, th...
21,500
ANTLR
.g4
850
21.508235
107
0.627486
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
true
true
true
true
36
hello.g4
mobileink_lab_clj_antlr/src/antlr/hello.g4
grammar hello; start : 'hello' ID ; ID : [a-zA-Z]+ ; WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines, \r (Windows)
126
ANTLR
.g4
4
30
70
0.575
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
true
true
37
radix.g4
mobileink_lab_clj_antlr/src/antlr/clj/radix.g4
lexer grammar radix; // Radix notation: not in Java syntax, but defined for the // Java function parseLong (http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html#parseLong%28java.lang.String,%20int%29) // Format from regex: [1-9][0-9]?[rR]([0-9A-Za-z]+ // (but that's not enough; max radix is 36 (which accomoda...
2,980
ANTLR
.g4
57
50.473684
128
0.664381
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
38
symbols.g4
mobileink_lab_clj_antlr/src/antlr/clj/symbols.g4
lexer grammar symbols ; import alphabet ; tokens {KW_SENTINEL,KW_NM,MAYBE_SYM_NS,MAYBE_SYM_NM,MAYBE_KW_NS,MAYBE_KW_NM,SYM_NS,WHITESPACE,COMMENTS,BAD_SYM_TERMINAL_COLON} // %%%%%%%%%%%%%%%% // See below for explanation of NS_START and NM_START // WARTS // clojure repl allows (symbol "-1234") and '-1234 // but reje...
15,231
ANTLR
.g4
374
27.582888
126
0.435664
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
39
cljParser.g4
mobileink_lab_clj_antlr/src/antlr/clj/cljParser.g4
parser grammar cljParser ; options { tokenVocab = cljLexer; } // use an empty start production to exercise the lexer only, // without triggering parse rule violations start : sexp+ EOF ; // : ( kw | sym ) (kw | sym)* EOF // ; sexp : lexp | vexp | mexp ; lexp : LPAREN (kw | sym | sexp) (sexp | kw | sym ...
3,161
ANTLR
.g4
80
33.4625
125
0.430016
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
40
cljLexer.g4
mobileink_lab_clj_antlr/src/antlr/clj/cljLexer.g4
lexer grammar cljLexer ; import alphabet, constants, literals ; // we'd like to import the symbols grammar, but modes don't work in // imported lex grammars //// begin symbols.g4 // lexer grammar symbols ; // import alphabet ; tokens {KW_SENTINEL,KW_NM,MAYBE_SYM_NS,SYM_NM,MAYBE_SYM_NM,MAYBE_KW_NS,MAYBE_KW_NM,SYM...
12,330
ANTLR
.g4
328
30.390244
133
0.471012
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
41
clj.g4
mobileink_lab_clj_antlr/src/antlr/clj/clj.g4
/* Converted to ANTLR 4 by Terence Parr. Unsure of provence. I see it commited by matthias.koester for clojure-eclipse project on Oct 5, 2009: https://code.google.com/p/clojure-eclipse/ Seems to me Laurent Petit had a version of this. I also see Jingguo Yao submitting a link to a now-dead github projec...
4,056
ANTLR
.g4
119
31.462185
87
0.59379
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
42
alphabet.g4
mobileink_lab_clj_antlr/src/antlr/clj/alphabet.g4
lexer grammar alphabet; fragment LETTER : [a-zA-Z] | // covers all characters above 0xFF which are not a surrogate ~[\u0000-\u00FF\uD800-\uDBFF] {Character.isJavaIdentifierStart(_input.LA(-1))}? | // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF [\uD800-\uDBFF...
1,157
ANTLR
.g4
37
28.27027
107
0.640934
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
43
literals.g4
mobileink_lab_clj_antlr/src/antlr/clj/literals.g4
/* [The "BSD licence"] Copyright (c) 2014 Terence Parr, Sam Harwell Modified (c) 2014 Gregg Reynolds 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 ...
6,294
ANTLR
.g4
225
25.417778
105
0.654167
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
44
lex_wscomments.g4
mobileink_lab_clj_antlr/src/antlr/clj/lex_wscomments.g4
lexer grammar wscomments ; // CAVEAT: this lexer grammar will produce ignorable warnings: // warning(155): nil.g4:20:26: rule 'WS' contains a lexer command with an unrecognized constant value; lexer interpreters may produce incorrect output // warning(155): nil.g4:34:34: rule 'COMMENT' contains a lexer command with a...
592
ANTLR
.g4
10
57.7
155
0.757366
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
45
constants.g4
mobileink_lab_clj_antlr/src/antlr/clj/constants.g4
lexer grammar identifiers ; @lexer::members { // add members to generated symParser public static final String stops = " \t\n"; } // standard namespaces NS_CLJ_CORE : 'clojure.core' ; NS_CLJ_LANG : 'clojure.lang' ; // ...etc... // specials //SPECIAL : DEF | DEFN | DO | FN | IF | LET | LOOP | QUOTE | OR | RECUR | V...
6,145
ANTLR
.g4
247
23.797571
94
0.63457
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
46
lex_clj.g4
mobileink_lab_clj_antlr/src/antlr/clj/lex_clj.g4
lexer grammar lex_clj ; STRING : '"' ( ~'"' | '\\' '"' )* '"' ; NUMBER : '-'? [0-9]+ ('.' [0-9]+)? ([eE] '-'? [0-9]+)? ; CHARACTER : '\\' . ; NIL : 'nil'; BOOLEAN : 'true' | 'false' ; KEYWORD : ':' SYMBOL_REST ; // :3a is legal PARAM_NAME: '%' (('1'..'9')('0'..'9')*)? ; DEFN : 'defn' ; special_DEF : 'def' ; ...
533
ANTLR
.g4
21
23.952381
56
0.465209
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
47
testParser.g4
mobileink_lab_clj_antlr/src/antlr/clj/testParser.g4
grammar testParser ; // we only need this in order to run org.antlr.v4.runtime.misc.TestRig, // which needs a parser and start rule // to test a lexer only you can use org.mobileink.antlr.lex // import whichever lexer you want to test, also ws // import idLexer ; import literals ; // @lexer::members { // add member...
1,943
ANTLR
.g4
37
50.972973
125
0.739153
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
48
symParser.g4
mobileink_lab_clj_antlr/src/antlr/clj/symParser.g4
parser grammar symParser; options { tokenVocab=symLexer; } //tokens {DIGIT} start : list+ EOF; // start : def EOF ; //list+ EOF ; // TODO: embedded lists list : LPAREN expr (expr | numeral)* RPAREN ; def : LPAREN DEF id_symbol (WS id_symbol)* RPAREN ; expr : list | id_special | id_predef | id_op | id_symbol ; //...
612
ANTLR
.g4
18
32.333333
83
0.608247
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
49
Biol.g4
oniden_vlrscript/src/main/antlr/Biol.g4
grammar Biol; // parser vlrImport : Import MODIDENT ; funcCall : VFIDENT Assign (argList)? ; assignment : TYPE VFIDENT (Assign argList)? ; expression : VFIDENT # Vfident | STRLIT # Strlit | INTLIT # Intlit | DECLIT # Declit | Lpar funcCall Rpar # Funccall | Lp...
1,748
ANTLR
.g4
63
24.269841
97
0.589436
oniden/vlrscript
4
0
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
50
covg_daq_v2-Route14.g4
lucask07_open_covg_daq_pcb/production/gerber/covg_daq_v2-Route14.g4
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(6.0.11)* G04 #@! TF.CreationDate,2024-04-17T11:11:56-05:00* G04 #@! TF.ProjectId,covg_daq_v2,636f7667-5f64-4617-915f-76322e6b6963,rev?* G04 #@! TF.SameCoordinates,Original* G04 #@! TF.FileFunction,Copper,L4,Inr* G04 #@! TF.FilePolarity,Positive* %FSLAX46Y46*% G04 Gerber Fmt 4...
1,796,571
ANTLR
.g4
74,265
22.191355
75
0.954688
lucask07/open_covg_daq_pcb
4
0
12
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
51
Tidal1.g4
franticspider_antlr4tidal/Antlr4Tidal/Tidal1.g4
/** * Define a grammar called Tidal1 */ grammar Tidal1; options{ language = Java; tokenVocab=Tidal1lexer; } //TODO: Need to be able to specify the path to the lexer before we create this package //@header{ // package com.antlr4.tidal; //} tidal : CHANNEL DOLLAR message // | MIDICHAN DOLLAR midi...
5,757
ANTLR
.g4
180
29.733333
135
0.720842
franticspider/antlr4tidal
4
0
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
52
Hello.g4
franticspider_antlr4tidal/Antlr4Tidal/Hello.g4
/** * Define a grammar called Hello */ grammar Hello; // match keyword hello followed by an identifier num_seq: (MYINT)*; MYINT: ('1'..'9')('0'..'9')*; ID : [a-z]+ ; // match lower-case identifiers WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines
278
ANTLR
.g4
8
32.875
67
0.588679
franticspider/antlr4tidal
4
0
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
53
calculator.g4
franticspider_antlr4tidal/Antlr4Tidal/calculator.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...
2,768
ANTLR
.g4
133
17.120301
72
0.674383
franticspider/antlr4tidal
4
0
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
true
true
true
true
54
Tidal1lexer.g4
franticspider_antlr4tidal/Antlr4Tidal/Tidal1lexer.g4
lexer grammar Tidal1lexer; CHANNEL : ('d') ('1'..'9'); //MIDICHAN: ('k') ('1'..'9'); DOLLAR : '$' ; QUOT : '"'; SND_OP : 'sound' ; //NOTE_OP : 'note' ; /* Pattern Transforms */ //0 args: BRAK: 'brak' ; DEGRADE: 'degrade'; REV : 'rev'; PALIN : 'palindrome'; //1 integer arg: ITER: 'iter'; DENSITY: 'density'; CHOP: ...
5,745
ANTLR
.g4
193
28
224
0.462362
franticspider/antlr4tidal
4
0
0
GPL-3.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
false
false
false
false
55
vhdl.g4
cvgit_vhdlParser/vhdl.g4
// // Copyright (C) 2010-2014 Denis Gavrish // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This pro...
32,827
ANTLR
.g4
1,422
20.323488
151
0.682479
cvgit/vhdlParser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
true
true
true
true
56
WMLLexer.g4
some1one_wesnoth-wml-parser/WMLLexer.g4
lexer grammar WMLLexer; //todo: inline and in-element commments //macros fragment INT: '0' | [1-9] ([0-9])* ; fragment CR : '\r'; fragment NL : '\n'; fragment WS : (' '|[\t]); fragment NEWLINE : ('\r'? '\n'); mode DEFAULT_MODE; DEFAULT_WS_OR_NEWLINE : (WS | NEWLINE) -> skip; OPEN_START_TAG: '[' -> pushMode(OPEN_E...
2,419
ANTLR
.g4
50
46.98
143
0.615908
some1one/wesnoth-wml-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
57
WMLParser.g4
some1one_wesnoth-wml-parser/WMLParser.g4
parser grammar WMLParser; options { tokenVocab=WMLLexer; } document : DEFAULT_WS_OR_NEWLINE* feature* EOF; feature : (element); //future will be like (element | pre-processor | script) element : (open_element | open_merge_element) (innerElement | attribute)* close_element ; innerElement : (inner_open_element | inner_o...
1,931
ANTLR
.g4
33
54.151515
118
0.752245
some1one/wesnoth-wml-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
58
vhdl_lexer.g4
diedricm_prMagic/vhdlExtract/vhdl_lexer.g4
// // Copyright (C) 2010-2017 Denis Gavrish, Maximilian Diedrich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later ver...
7,693
ANTLR
.g4
294
22.969388
149
0.477302
diedricm/prMagic
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
59
vhdl_parser.g4
diedricm_prMagic/vhdlExtract/vhdl_parser.g4
// // Copyright (C) 2010-2017 Denis Gavrish, Maximilian Diedrich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later ver...
28,097
ANTLR
.g4
1,166
19.998285
96
0.739671
diedricm/prMagic
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
true
true
60
Common.g4
ptytb_dream-maker-parser/grammar/Common.g4
lexer grammar Common; //////////////////////////////////////////////////////////////////////////////// // string STRING : '"' (STRING_MACRO | EVAL | ~('\\'| '\r' | '\n'))*? '"' | '\'' ~('\r' | '\n')*? '\'' | STRING_MULTILINE ; fragment EVAL : '[' (EVAL | ~(']' | '\r' | '\n'))*? ']' ; ...
1,415
ANTLR
.g4
58
19.827586
80
0.34715
ptytb/dream-maker-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
61
Preproc.g4
ptytb_dream-maker-parser/grammar/Preproc.g4
parser grammar Preproc; options { tokenVocab = PreprocLexer; } macro : macroDefinePar | macroDefine | macroUndef | macroIncludeLib | macroIncludeRel | macroIfdef | macroIfndef | macroElif | macroElse | macroEndif | macroIf | macroError | ...
1,785
ANTLR
.g4
86
16.465116
74
0.603807
ptytb/dream-maker-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
62
DMLexer.g4
ptytb_dream-maker-parser/grammar/DMLexer.g4
lexer grammar DMLexer; import Common; //////////////////////////////////////////////////////////////////////////////// // token flow control @lexer::header { import java.util.Stack; } @lexer::members { private int nesting = 0; private int indentLevel = 0; private int indentUnit = 0; private int pr...
9,316
ANTLR
.g4
368
17.217391
80
0.424514
ptytb/dream-maker-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
63
WhiteSpace.g4
ptytb_dream-maker-parser/grammar/WhiteSpace.g4
lexer grammar WhiteSpace; @lexer::members { private int joinedLines = 0; } //////////////////////////////////////////////////////////////////////////////// // white ML_COMMENT : ({ getCharPositionInLine() == 0 }? WS)? '/*' (ML_COMMENT | .)*? '*/' { setText(String.format("# %d ",...
585
ANTLR
.g4
27
15.518519
80
0.332123
ptytb/dream-maker-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
64
DMParser.g4
ptytb_dream-maker-parser/grammar/DMParser.g4
parser grammar DMParser; options { tokenVocab = DMLexer; } //////////////////////////////////////////////////////////////////////////////// // parser newline : IGNORE_NEWLINE ; label : ID COLON? (newline? blockProc)? ; constant : STRING | (PLUS | MINUS)? (INT | FLOAT) | N...
6,104
ANTLR
.g4
300
15.243333
80
0.553503
ptytb/dream-maker-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
65
PreprocLexer.g4
ptytb_dream-maker-parser/grammar/PreprocLexer.g4
lexer grammar PreprocLexer; import WhiteSpace, Common; //////////////////////////////////////////////////////////////////////////////// // plain mode NL : ('\r'? '\n' | '\r') { if (joinedLines > 0) { joinedLines = 0; setText(String.format("# %d \n"...
1,970
ANTLR
.g4
104
15.105769
80
0.42137
ptytb/dream-maker-parser
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
66
cql.g4
niquola_cql-pg/src/cql_clj/cql.g4
grammar cql; /* * Parser Rules */ logic : libraryDefinition? usingDefinition* includeDefinition* codesystemDefinition* valuesetDefinition* codeDefinition* conceptDefinition* parameterDefinition* statement+ ; /* * Definitions */ libr...
15,262
ANTLR
.g4
454
29.140969
161
0.539686
niquola/cql-pg
3
1
0
EPL-1.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
true
true
true
67
RalphLexer.g4
suyanlong_ralph-antlr4/RalphLexer.g4
lexer grammar RalphLexer; // LEXER // src/main/scala/org/alephium/protocol/vm/lang/Lexer.scala FN : 'fn'; PUB : 'pub'; RETURN : 'return' ; INTERFACE : 'Interface'; ENUM : 'enum'; TXSCRIPT : 'TxScript'; CONTRACT ...
5,239
ANTLR
.g4
153
31.581699
105
0.401665
suyanlong/ralph-antlr4
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
68
RalphParser.g4
suyanlong_ralph-antlr4/RalphParser.g4
parser grammar RalphParser; options { tokenVocab = RalphLexer; } sourceFile: (txScript | contract | interface | assetScript)* EOF; identifierList: varName (COMMA varName)*; varDeclSingle: (CONST | (LET MUT?)) varName ASSIGN expression; varDeclMulti: (CONST | (LET MUT?)) L_PAREN identifierList R_PAREN ASSIGN exp...
3,722
ANTLR
.g4
156
20.50641
122
0.719807
suyanlong/ralph-antlr4
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
false
false
false
false
69
JavaScriptLexer.g4
softvis-research_jqa-javascript-plugin/src/main/antlr4/org/jqassistant/contrib/plugin/javascript/parser/JavaScriptLexer.g4
/* * The MIT License (MIT) * * Copyright (c) 2014 by Bart Kiers (original author) and Alexandre Vitorelli (contributor -> ported to CSharp) * Copyright (c) 2017 by Ivan Kochurkin (Positive Technologies): added ECMAScript 6 support, cleared and transformed to the universal grammar. * Copyright (c) 2018 by Juan ...
17,247
ANTLR
.g4
640
22.8375
132
0.486651
softvis-research/jqa-javascript-plugin
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
true
true
true
true
70
JavaScriptParser.g4
softvis-research_jqa-javascript-plugin/src/main/antlr4/org/jqassistant/contrib/plugin/javascript/parser/JavaScriptParser.g4
/* * The MIT License (MIT) * * Copyright (c) 2014 by Bart Kiers (original author) and Alexandre Vitorelli (contributor -> ported to CSharp) * Copyright (c) 2017 by Ivan Kochurkin (Positive Technologies): added ECMAScript 6 support, cleared and transformed to the universal grammar. * Copyright (c) 2018 by Juan ...
12,737
ANTLR
.g4
364
30.686813
131
0.584924
softvis-research/jqa-javascript-plugin
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
true
true
true
true
71
PhpLexer.g4
softvis-research_jqa-javascript-plugin/antlr4/org/jqassistant/contrib/plugin/php/PhpLexer.g4
/* PHP grammar. The MIT License (MIT). Copyright (c) 2015-2017, Ivan Kochurkin (kvanttt@gmail.com), Positive Technologies. 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, incl...
15,332
ANTLR
.g4
436
31.793578
138
0.518726
softvis-research/jqa-javascript-plugin
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
true
true
true
true
72
PhpParser.g4
softvis-research_jqa-javascript-plugin/antlr4/org/jqassistant/contrib/plugin/php/PhpParser.g4
/* PHP grammar. The MIT License (MIT). Copyright (c) 2015-2017, Ivan Kochurkin (kvanttt@gmail.com), Positive Technologies. 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, incl...
19,309
ANTLR
.g4
742
21.475741
123
0.633904
softvis-research/jqa-javascript-plugin
3
0
0
GPL-3.0
9/19/2024, 2:49:12 PM (Europe/Amsterdam)
true
true
true
true
73
SBVR.g4
ShapeChange_ShapeChangeAntlr/src/main/antlr4/de/interactive_instruments/antlr/sbvr/SBVR.g4
/* * * ShapeChange Antlr - SBVR Grammar * * This file is part of ShapeChange Antlr, a project that creates antlr * parsers for ShapeChange. * * ShapeChange takes a ISO 19109 Application Schema from a UML model and * translates it into a GML Application Schema or other implementation * representations. * ...
6,481
ANTLR
.g4
341
17.058651
73
0.716094
ShapeChange/ShapeChangeAntlr
2
2
0
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
74
adl_15_outer.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/adl_15_outer.g4
/* The 'outer' definition of ADL 1.5, describing an openEHR archetype in human readable text form. This document aims at providing a compact description of the Archetype Definition Language in a form that it can be re-usable by software in different programming languages, whether this is achieved through an ANTLR ...
4,594
ANTLR
.g4
60
63.95
204
0.654792
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
75
odin.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/odin.g4
/* WORK IN PROGRESS */ grammar odin; input : attr_vals | complex_object_block; attr_vals :attr_val |attr_vals attr_val |attr_vals SYM_SEMI attr_val; attr_val : attr_id SYM_EQ object_block; attr_id :V_ATTRIBUTE_IDENTIFIER; object_block:complex_obje...
9,043
ANTLR
.g4
264
32.458333
98
0.79534
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
76
cadl_15_symbols.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/cadl_15_symbols.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. */ lexer grammar cadl_15_symbols; SYM_AFTER :'after'|'AFTER'; SYM_ALLOW_ARCHETYPE :'allow_archetype'|'ALLOW_ARCHETYPE'; SYM_BEF...
1,181
ANTLR
.g4
29
39.551724
79
0.609375
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
77
cadl_15_outer.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/cadl_15_outer.g4
/* The Archetype Definition Language (ADL) is 'split' into a set of different specifications as described at: http://www.openehr.org/wiki/display/spec/ADL+1.5+parser+resources It is composed of the constrain ADL (cADL) and data ADL (dADL or ODIN). cADL is used to describe not only the structure of an archetype but ...
20,967
ANTLR
.g4
292
52.664384
138
0.556058
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
78
adl_15_symbols.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/adl_15_symbols.g4
/* The Archetype Definition Language (ADL) is 'split' into a set of different specifications as described at: http://www.openehr.org/wiki/display/spec/ADL+1.5+parser+resources It is composed of the constrain ADL (cADL) and data ADL (dADL or ODIN). cADL is used to describe not only the structure of an archetype but ...
2,560
ANTLR
.g4
39
64.153846
124
0.680732
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
79
cadl_15_valuedefs.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/cadl_15_valuedefs.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 cadl_15_valuedefs; import adl_15_commonSymbols; IDCHAR :[a-zA-Z0-9_]; VALUESTR ...
5,173
ANTLR
.g4
60
83.466667
289
0.513641
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
80
adl_15_commonValuedefs.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/adl_15_commonValuedefs.g4
/* The Archetype Definition Language (ADL) is 'split' into a set of different specifications as described at: http://www.openehr.org/wiki/display/spec/ADL+1.5+parser+resources It is composed of the constrain ADL (cADL) and data ADL (dADL or ODIN). cADL is used to describe not only the structure of an archetype but ...
7,960
ANTLR
.g4
85
89.788235
296
0.569425
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
81
adl_15_valuedefs.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/adl_15_valuedefs.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. */ lexer grammar adl_15_valuedefs; import adl_commonSymbols, cadl_15_valuedefs; V_IDENTIFIER :NAMESTR; /*TODO: H...
1,114
ANTLR
.g4
20
54.1
247
0.546458
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
82
adl_15_commonSymbols.g4
aanastasiou_adl_ebnf/src/antlrDefs/adl/adl_15_commonSymbols.g4
/* The Archetype Definition Language (ADL) is 'split' into a set of different specifications as described at: http://www.openehr.org/wiki/display/spec/ADL+1.5+parser+resources It is composed of the constrain ADL (cADL) and data ADL (dADL or ODIN). cADL is used to describe not only the structure of an archetype but ...
2,429
ANTLR
.g4
57
41.210526
98
0.57161
aanastasiou/adl_ebnf
2
0
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
83
ClausewitzParser.g4
ze_v2grammar/ClausewitzParser.g4
parser grammar ClausewitzParser; options { tokenVocab = ClausewitzLexer; } program: expr* EOF; expr: assignExpr | braceExpr; assignExpr: assignType ASSIGN assignValue; assignType: IDENTIFIER | INT | DATE; assignValue: exprType | braceExpr; braceExpr: L_BRACE braceValue* R_BRACE; brace...
425
ANTLR
.g4
24
14.041667
42
0.709924
ze/v2grammar
2
0
0
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
84
ClausewitzLexer.g4
ze_v2grammar/ClausewitzLexer.g4
lexer grammar ClausewitzLexer; channels { COMMENTS_CHANNEL, NEWLINE_CHANNEL } ASSIGN: '='; L_BRACE: '{'; R_BRACE: '}'; DATE: INT '.' INT '.' INT; FLOAT: INT? '.' DIGIT+; INT: '-'? DIGIT+; STRING: '"' ~('\r' | '\n' | '"')* '"'; IDENTIFIER: LETTER (LETTER | DIGIT)*; fragment DIGIT: ('0'..'9'); fragment LETT...
875
ANTLR
.g4
38
19.605263
58
0.504222
ze/v2grammar
2
0
0
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
85
lefdefbases.g4
libresilicon_lefdef_parser/grammer/lefdefbases.g4
grammar lefdefbases; import caseinsenstivefragments; VERSION: V E R S I O N; BUSBITCHARS: B U S B I T C H A R S; DIVIDERCHAR: D I V I D E R C H A R; fragment INT: '-'? [0-9]+; fragment FLOAT: '-'? [0-9]*'.'?[0-9]+ ; fragment HEX: [0-9A-Fa-f]; WS: [ \t\r\n]+ -> channe...
959
ANTLR
.g4
29
31.758621
50
0.560261
libresilicon/lefdef_parser
2
1
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
86
lefkeywords.g4
libresilicon_lefdef_parser/grammer/lefkeywords.g4
lexer grammar lefkeywords; import caseinsenstivefragments; //units keywords UNITS: U N I T S; TIME: T I M E; NANOSECONDS: N A N O S E C O N D S; CAPACITANCE: C A P A C I T A N C E; PICOFARADS: P I C O F A R A D S; RESISTANCE: ...
10,987
ANTLR
.g4
230
46.752174
84
0.406863
libresilicon/lefdef_parser
2
1
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
87
def.g4
libresilicon_lefdef_parser/grammer/def.g4
grammar def; import defkeywords, lefdefbases ; point: POPEN num num PCLOSE; basepolygon: POLYGON point point point+; baserect: RECT point point; baserect_or_polygon: ( basepolygon | baserect ); property: (PLUS PROPERTY (propName=id propVal)+)+; propVal: ( num | STRING ); def: defstatements+; defstatements: version ...
10,289
ANTLR
.g4
207
44.425121
143
0.70917
libresilicon/lefdef_parser
2
1
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
88
caseinsenstivefragments.g4
libresilicon_lefdef_parser/grammer/caseinsenstivefragments.g4
lexer grammar caseinsenstivefragments; fragment A : [aA]; // match either an 'a' or 'A' fragment B : [bB]; fragment C : [cC]; fragment D : [dD]; fragment E : [eE]; fragment F : [fF]; fragment G : [gG]; fragment H : [hH]; fragment I : [iI]; fragment J : [jJ]; fragment K : [kK]; fragment L : [lL]; fragment M : [mM]; fra...
564
ANTLR
.g4
27
19.851852
48
0.630597
libresilicon/lefdef_parser
2
1
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
true
true
89
lef.g4
libresilicon_lefdef_parser/grammer/lef.g4
grammar lef; import lefkeywords, lefdefbases ; lef: version namescasesensitive? busbitchars? dividerchar? units? manufacturinggrid? useminspacing? clearancemeasure? propertydefinitions? fixedmask? layer* maxviastack? viarulegen* via* viarule* nondefaultrule* site* macro* beginext* ...
11,006
ANTLR
.g4
255
39.45098
263
0.742059
libresilicon/lefdef_parser
2
1
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
90
defkeywords.g4
libresilicon_lefdef_parser/grammer/defkeywords.g4
lexer grammar lefkeywords; import caseinsenstivefragments; PLUS: '+'; MINUS:'-'; POPEN: '('; PCLOSE: ')'; PROPERTY: P R O P E R T Y; END: E N D; DESIGN: D E S I G N ; ROW: R O W; DO: D O; BY: B Y; STEP: S T E P; DIEAREA: D I E A R E A; HISTORY: H I S T O R Y; TRACKS: T R A C K S ; X_CORD: X ; Y_CORD: Y ; MASK: M A S ...
4,464
ANTLR
.g4
170
25.247059
92
0.60904
libresilicon/lefdef_parser
2
1
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
91
PROJECT_LANG_1.g4
seanpm2001_SNU_2D_ProgrammingTools_IDE_ANTLR/PROJECT_LANG_1.g4
// Start of script // Common options, for example, the target language options { language = "CSharp"; } // Followed by the parser class SumParser extends Parser; options { k = 1; // Parser Lookahead: 1 Token } // Definition of an expression statement: INTEGER (PLUS^ INTEGER)*; // Here is the Lexer class SumLexer ex...
889
ANTLR
.g4
32
26.53125
183
0.738012
seanpm2001/SNU_2D_ProgrammingTools_IDE_ANTLR
2
2
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
92
LICENSE.g4
seanpm2001_SNU_2D_ProgrammingTools_IDE_ANTLR/LICENSE.g4
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
35,149
ANTLR
.g4
553
61.144665
78
0.806439
seanpm2001/SNU_2D_ProgrammingTools_IDE_ANTLR
2
2
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
93
CSharp_Calc_ANTLR.g4
seanpm2001_SNU_2D_ProgrammingTools_IDE_ANTLR/ANTLR/Samples/CSharp_Calc_ANTLR.g4
// Common options, for example, the target language options { language = "CSharp"; } // Followed by the parser class SumParser extends Parser; options { k = 1; // Parser Lookahead: 1 Token } // Definition of an expression statement: INTEGER (PLUS^ INTEGER)*; // Here is the Lexer class SumLexer extends Lexer; option...
417
ANTLR
.g4
22
17.681818
51
0.718987
seanpm2001/SNU_2D_ProgrammingTools_IDE_ANTLR
2
2
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
94
Parser_ANTLR_V1.g4
seanpm2001_SNU_2D_ProgrammingTools_IDE_ANTLR/ANTLR/Samples/Parser_ANTLR_V1.g4
TextReader reader; // (...) Fill TextReader with character SumLexer lexer = new SumLexer(reader); SumParser parser = new SumParser(lexer); parser.statement();
160
ANTLR
.g4
5
30.8
40
0.779221
seanpm2001/SNU_2D_ProgrammingTools_IDE_ANTLR
2
2
1
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
95
PROJECT_LANG_1.g4
seanpm2001_Learn-ANTLR/PROJECT_LANG_1.g4
// Start of script // Common options, for example, the target language options { language = "CSharp"; } // Followed by the parser class SumParser extends Parser; options { k = 1; // Parser Lookahead: 1 Token } // Definition of an expression statement: INTEGER (PLUS^ INTEGER)*; // Here is the Lexer class SumLexer ex...
1,055
ANTLR
.g4
32
31.71875
354
0.750245
seanpm2001/Learn-ANTLR
2
1
0
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
96
bertalang.g4
giancarlopernudisegura_bertalang/grammar/bertalang.g4
grammar bertalang; @tokenfactory { pub type LocalTokenFactory<\'input> = antlr_rust::token_factory::ArenaCommonFactory<\'input>; } file : statement* EOF ; statement : variable_declaration | variable_assignment | function_declaration | while_loop | foreach_loop | if_statement | RET...
3,819
ANTLR
.g4
220
13.195455
93
0.508094
giancarlopernudisegura/bertalang
2
0
0
GPL-3.0
9/19/2024, 2:49:19 PM (Europe/Amsterdam)
false
false
false
false
97
JML.g4
phase_jml/src/main/antlr/JML.g4
grammar JML; /* This is the grammar for Jadon's ML. It is somewhat based off https://people.mpi-sws.org/~rossberg/sml.html */ module : 'with' ID | declaration+ ; expression : constant | expression expression // application | '(' expression ')' | '(' expression (',' expression)+ ')' // tup...
1,281
ANTLR
.g4
52
20.730769
70
0.554187
phase/jml
1
0
0
MPL-2.0
9/19/2024, 2:49:26 PM (Europe/Amsterdam)
false
false
false
false
98
MySqlLexer.g4
qiub649691422_demo-sharding/src/main/java/com/demo/sharding/advance/MySqlLexer.g4
/* MySQL (Positive Technologies) grammar The MIT License (MIT). Copyright (c) 2015-2017, Ivan Kochurkin (kvanttt@gmail.com), Positive Technologies. Copyright (c) 2017, Ivan Khudyashev (IHudyashov@ptsecurity.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated...
54,782
ANTLR
.g4
1,110
47.217117
96
0.349217
qiub649691422/demo-sharding
1
0
0
GPL-3.0
9/19/2024, 2:49:26 PM (Europe/Amsterdam)
true
true
true
true
99
MySqlParser.g4
qiub649691422_demo-sharding/src/main/java/com/demo/sharding/advance/MySqlParser.g4
parser grammar MySqlParser; options { tokenVocab=MySqlLexer; } // Top Level Description root : sqlStatements? MINUSMINUS? EOF ; sqlStatements : (sqlStatement MINUSMINUS? SEMI? | emptyStatement)* (sqlStatement (MINUSMINUS? SEMI)? | emptyStatement) ; sqlStatement : ddlStatement | dmlStatemen...
78,747
ANTLR
.g4
2,157
31.133055
179
0.601898
qiub649691422/demo-sharding
1
0
0
GPL-3.0
9/19/2024, 2:49:26 PM (Europe/Amsterdam)
true
true
true
true