id
int64
0
563
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
sha
stringlengths
64
64
exact_dupe_TheStackV2
bool
2 classes
exact_dupe_TheStack
bool
2 classes
exact_dupe_RedPajama
bool
2 classes
exact_dupe_GithubCode
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)
af15b607c878b84f1621be9514b5efd9e822a9314110f66ba10bf37c8db035e7
false
false
false
false
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)
732eec54ccfc37532fa465c0044612ecbfe100c71be672a671f174b9aea93054
false
false
false
false
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)
0ea6f4b20b752ae8915143868d83a308dec5dd79358662279f2c3485c54ee5fd
true
true
false
false
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)
c7336d5c06f47974427803b7cc18cbdd183a53eae67a5a3a7fa2bda2817bd44c
true
true
false
false
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)
6c2e4988ac71a4c38767e131fe0c5cf45d0d310475dd31d99143c851324f43ab
true
true
false
false
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)
6f4ee52923b33b6d67d0ce0c3991638fcc53a277098bd63217e975a9233225f3
false
false
false
false
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)
c26cfb5cec23eac9408d2ce5e4774d541c5b8ad91f337e1290ca0c9d08c5b866
true
false
false
false
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)
6691d7cc1399906b8d969b76b2e0323e325f4865d3e0e1a2cf6c53112f227e05
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)
e48def2d7d5ba8a86bf36e123bb45201e980878a0d2497fa94bd8952672aa422
true
true
false
false
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)
90565ca69b1c5c1fe3406cb22ec14d13279d96aa7633a1eeff40a84f7178a0ca
false
false
false
false
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)
32ac9088400c1ca8fc2268c7aa1a823b953dc45e2263c313a579e6457aad397a
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)
3914ba4971549694b3515c9e35b1f7fce4804eaeac9b8d8a5561196744c04895
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)
f6484fdb54763e18b478261b130007b3ba40ededd3aad8dd20bfda8b08fda059
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)
000764729378eb454c0f49e748d72510393c26fd6fff040413848fe56a9169f6
true
true
false
false
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)
9c01a4bd583d4d7bdb61228f19e6275c3d5b32449c2b79e22b23ded13782b9e0
false
false
false
false
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)
e89a279f0ffff588db8b1317f4f45fad31f7c42620c832b64f3a49e853059982
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)
bcf1981d34bf2a8e8369cc41820098d48b0db7822ce673467873e14b5c3f02c6
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)
8599556107424a5ef6b0ce0d20174f5e5583e4decbdbfa0c71f83cecab6fb576
false
false
false
false
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)
6f4c360353c20daa7630e1d35f4972b54c570e5d2d1905eadadda76f65fd5d2a
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)
7e58f5875bf4ae3f04cfe95834a89952f2d51ec784dd95e09710533abb293e25
true
true
false
false
21
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)
24f02f0103813cef274c7c6bd0b44a33d3a31f0cbb552de7183a3375e2f377d9
true
false
false
false
22
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)
8a4ce707be40475204143118bc6631f80058caf1b3fed5a5bd74440d8bf500c7
true
false
false
false
23
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)
b95488f540472c960a517f484f741da77baca9ad21c839202bcd8c2c02fa503d
false
false
false
false
24
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)
569f5848107cf652b2129be7ebc5947592d841de8714d553f4e65bbd0e990e05
false
false
false
false
25
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)
5ad5d34f07306fea874516ade0aa5f1c5a7ff4d5db4bf2cfdfbbe1ce337212fa
false
false
false
false
26
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)
64a8e513e7f7f3169f45d6e34e0d933e79bf7b8dc04d40a74619a1ab71f7f50f
false
false
false
false
27
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)
4b8e99ddf07044e974cee2f87c9a5b93481719fc5c65f87cf29710ea255f368b
false
false
false
false
28
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)
41c5ef8dc05aab8f21bb035165037e7b4bb87b849f58806560e7ee90e066f2fd
false
false
false
false
29
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)
854cb053359a0f098512dccbb5225121fd69e5f6687b81e4636ae354e1a39131
false
false
false
false
30
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)
6c49639df4e39de4dafbbaa86c7919d8d411109012bd7e0cf00a91902fca89bc
false
false
false
false
31
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)
46f275ee0bed040d80749f93171c44ff6499d284007b5fa211b3aea65f62d87b
false
false
false
false
32
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)
ef8d9795db9c87932342f53ca51695b32bed8304f9dd3a3122ffc80b143b3baf
false
false
false
false
33
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)
1093c9fc9c77d99bf0f36efec6f7c12853efc57c14ab64db2376b21103f5e2ec
false
false
false
false
34
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)
e983e06825058bf9e7afddeb2b28f4cd929fb27ab2ff42b6f0e85e8e2392d74f
false
false
false
false
35
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)
baa6cc6272369899edae7d70405dba5ecbe686b0e1d818f3f133ba7d47aea47d
true
true
false
false
36
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)
6f162c294ec10fcb968f9de41735d1c9d8f9c582452b8196af687ea0c888172b
true
true
false
false
37
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)
52cdb07436f00a3a07a8eeaa5dc02263ec8dacc55ebf01bb258d0275a7c48c13
false
false
false
false
38
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)
d7d78db8f275da7d4b4ea8c7f558ce77917d4bdb5a4ab4c10630f471c76aff1f
false
false
false
false
39
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)
d032137dbb2a1fbd625d9eae6f74d87caa8e91d8532740e266a59fb1cfb9965a
false
false
false
false
40
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)
61223d3171643c3dfeb19276278e9a81dd36758d0af32521ab7a1ffc548cf2cb
false
false
false
false
41
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)
e596daf43346ddad131bf04f59efd271eb5d0ee149049d07250ede7d0dc9ddf1
false
false
false
false
42
sym.g4.bak2
mobileink_lab_clj_antlr/src/antlr/clj/sym.g4.bak2
// Clojure symbol grammar grammar sym ; start: id_sym ; //id : ID_NS | ID_NAME ; // the informal rule says '/' may not occur in ns, but the regex allows it id_sym : id_kw | id_symbol ; //id_kw : ID_KW ; id_kw : ':' (id_ns '/')? id_name ; // TODO: '::' only allowed at start //id_symbol : ID...
2,382
ANTLR
.g4
80
26.2375
109
0.534823
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
a7497cf795761686b1ed466b99112c0abce3fcc9f56af41ba3cf16b61a7177b0
false
false
false
false
43
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)
06720aafd332eda340fde25243161dbfa09cc7c339664263055b01743edeed2e
false
false
false
false
44
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)
2126749c4efd9447a463cf42315a2aae575cafeea6d7623e6c71b2e6116e1ace
false
false
false
false
45
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)
c04fa70e345e88dc7bdef9fd7f929b6aa8a7da944c2d86691e0f742d566c0775
false
false
false
false
46
sym.g4.bak
mobileink_lab_clj_antlr/src/antlr/clj/sym.g4.bak
// Clojure symbol grammar grammar sym ; // @lexer::members { // public static final int WHITESPACE = 3; // public static final int COMMENTS = 5; // } start: ID_NS; // LispReader symbolPat regex: [:]?([\\D&&[^/]].*/)?(/|[\\D&&[^/]][^/]*) // ID_SYM // : ID_KW // | ID_SYMBOL // ; // ID_KW // : ':' ...
5,733
ANTLR
.g4
208
25.375
110
0.482683
mobileink/lab.clj.antlr
4
3
0
EPL-1.0
9/19/2024, 2:49:05 PM (Europe/Amsterdam)
a60044e720f3ae254fc1aa49b7be9518d9584e0fb22bffed2615a250b44817ba
false
false
false
false
47
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)
aa69ea5f82cd4f177f4e9c8cee596980f232ad96d951b366707ac2088e4df991
false
false
false
false
48
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)
bb10a0a97221f424f2f9184e1688c1747acca5a9cec28fa5e751f99abf8aad71
false
false
false
false
50
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)
46bc3de4fc27f4a005fafb6303021a77e8a2b044245172c0d3f388e62ad6c0ba
false
false
false
false
51
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)
fef9c0185eb798ccad58f1edac28dc7421a140062a6f18ef64213869b49c4f4e
false
false
false
false
52
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)
8f7c083cc99cda90c6db491c44a107033d5b8cb91fecb2dd81349ddf6800b325
false
false
false
false
53
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)
2b29a4b432268929dc4c58be8e304b7224988af20be1c2f48d32001ef3b9a3cb
false
false
false
false
54
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)
35b3231cd76bfc44fd4ba1ac2dd2aee4b70227ef7a8d3dcedf32d5f2e46a0a0b
false
false
false
false
55
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)
c80876c89371430f487d1a5aebd2af2070a69de372a2c71757566f606a4a5624
false
false
false
false
56
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)
2f517562876d6c7ea5232283c8e619b9fdcc64d48e8760408bb1e9d5a160a0c3
false
false
false
false
57
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)
d379900f3a4f7286c9d5708349e48fa52f795094e02cc3badeed22f9c52ad4cb
true
true
false
false
58
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)
b9b5673b4dda56f11b2d6b573864d95c327d5a4754bec464b85ae8499a1500f1
false
false
false
false
59
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)
06a31496be0514efd49b1a7226754b5bddbad44c1df3083d8c9e31ef989c7d86
true
true
false
false
60
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)
b95452147ca443aacd25e25b9d4a98394810373d91565fcc1373e1b548929eb1
false
false
false
false
61
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)
272389e5c81fdb359c9e3eae1fb27e1f63ec651a69a4b13124b47e42223ac8b8
false
false
false
false
62
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)
ad5ac64496371346a9026132c3ce868bd19b8494949382d3f0176b54b05e09ca
false
false
false
false
63
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)
ff7b940ec972f6dbf024b47b947cd6df5fd6c71d0b91f4725505488ccb3fe2ec
false
false
false
false
64
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)
2e442fcd92b9db611e7105b739bfa6babe5684f827796ec7246a4055b2558f13
false
false
false
false
65
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)
f5edb8b5d3f3b0437411eda9dd3c776655066101a76160e8e7c33b12278b94b1
false
false
false
false
66
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)
ec7257f60e0142477b0139cb222dae89a7cd1d788f0801564bdb7e8807081660
false
false
false
false
67
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)
0e94bff9f61b6a643d29ad5283c6666ee71ace70d9e8e331db940176ea47fe3e
false
false
false
false
68
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)
98ab9c1df13884374bddf84844361afc81e2629425ed9c8a9b01faaf621d243a
false
false
false
false
69
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)
a996a09d84e94c3f24c3854784820896bc78220a228523c78497655c2341585c
false
false
false
false
70
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)
cb69f57e56a25bb8747f681d95462ef62c201a223b450b2ef04ea2a3f35bc2a4
true
false
false
false
71
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)
b1bd9c7af2539002c0abcbef28123183c39ec513edbc3b1319268c2cc771133c
false
false
false
false
72
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)
222cd20a4b4ebe2fe0c9138bb728a4aba588871ac6e051ac385db071c88b02fc
false
false
false
false
73
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)
e2f83c6ec01307da6662a7e9ae5a62ae975fbc1d1d5e65aa82444c9f2b54f347
true
true
false
false
74
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)
b69795ed06cfc8ce81d0f1869c072b1eed8bce2322e652eaa8d804a6b4097371
true
true
false
false
75
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)
f9998a1706848bbe45a69182be049a8cf1b3a12b95a36298d7202703dfdfd8ef
true
true
false
false
76
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)
1174345ffd707cd28b4ffe96124f1071274031bc67fe3dc5ed2142c0ebbc9fae
true
true
false
false
77
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)
fb6c093559a282dc6911f872256d8b890fb65f379d01b3717fec9845d5a35f52
false
false
false
false
78
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)
0d07d0bdbd6e01f7b9774e372dcbc12e833ebc583036feaf5da387bb8f3bda7e
false
false
false
false
79
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)
4f89af2d5cf5b8c37042eea2bb15b737da7e6ddfc4a14d30d0d86bbfb2093ac6
false
false
false
false
80
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)
edf843794b4ef33e5706510e85ae288cba8f8e40f86b522344ab4a7a6e289e62
false
false
false
false
81
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)
d452008e57892c8af279df243e971f9f2f36b6355e74d4c2b4ada8368fb7a88d
false
false
false
false
82
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)
f82bf16533c822d4caaf46480913a81f801b849f4fcb0ca87740e80a18266716
false
false
false
false
83
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)
e8fe06fb07e8b5e2ee1db62c5859409385bab2713c4bc17225d197a970faa519
false
false
false
false
84
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)
c775e88c7828b33a38c24f946a946ef8269af1df89a4b22d8a0baf0a8e7f2ae8
false
false
false
false
85
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)
1812bf58b79e5f3127026c074105a7d245eccd23f7641b9a44ea704149f58cc4
false
false
false
false
86
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)
db405baf453cc507b0618a5b2a03e0372fc19f4b7fa17eb07b70c0bdef3083b5
false
false
false
false
87
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)
cd721ccd64ce599321888c1cc1e6477dfa92bc2446f4c67ea11778213a2138e5
false
false
false
false
88
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)
8d73c5cc5f8bdbc14edc89fe578d4d1dd764519c21c54fdffeda7d8e3629df6b
false
false
false
false
89
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)
c454813ba5c99301b4fcea749b5f118c09b90e81abbde7cf0ca6a65a8dfee35e
false
false
false
false
90
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)
8a9ddb9e73988a16259ecd18db79d7751c8f403bcdc7ffe3b8ddb6ca82ec1ee0
false
false
false
false
91
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)
a71c33db1b9eb18f316c4789331091ff514f9fa54dcbc4448da33fc514778534
false
false
false
false
92
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)
f0e301d93689c6be724313a5b8cacd6d23c4a29356917d236038f530fa5f05e0
false
false
false
false
93
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)
90809cce72f4449e43620b37cde05b0f38cbdeeb71751e2180727cdfa302dd78
false
false
false
false
94
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)
39fbbf20ea040562d4331fea57d3754696d2bbcc758863baec19bbe4f63ad2ba
false
false
false
false
95
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)
c36af6b7fc0641eeb798b9d4a2f155d911657457dc6cd1b4824c251f727d6d3a
false
false
false
false
96
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)
47e032e04c3cfc255ea285f5c07e8b8beeedb012fa1e14fa8714a078e11a10c6
false
false
true
true
103
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)
87869ebefb1c0e80ebf58910ba3b1580ea937a4eefe96d59ec71c4ab89e3ea5f
false
false
false
false
104
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)
173f396ca306adcea5aa089b5269f505ce84f284b899736a760f1990459d4a02
false
false
false
false
107
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)
608b5974f04828fa7fdc194382c31778553bec56f8aa2bcc1054b00f41aeadf3
false
false
false
false
115
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)
5fc25d51572bf98b9fe054420c2b20dabf04fa86542418947fe74ab7f547ded2
false
false
false
false
116
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)
d2a05ff7601179996ba047fd0214b3a34d592a0c3e74d04ea0afe1d30739db95
false
false
false
false