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
523
COMMAND_REX_MODE.g4
teragrep_pth_03/src/main/antlr4/imports/COMMAND_REX_MODE.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,863
ANTLR
.g4
63
43.603175
100
0.737728
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
2b841a683dcf821012a2e00e83e8425fb6938c9093767f00edd97c34cec24b9e
false
false
false
false
524
DPLParserTransform_redistribute.g4
teragrep_pth_03/src/main/antlr4/imports/DPLParserTransform_redistribute.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,424
ANTLR
.g4
55
41.309091
108
0.772843
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
2d472cbdc5d418b2e2aac503ada031f6bb9fd83e183fd1393e9a83e51648cbd6
false
false
false
false
525
DPLParserTransform_makecontinuous.g4
teragrep_pth_03/src/main/antlr4/imports/DPLParserTransform_makecontinuous.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,717
ANTLR
.g4
61
41.098361
114
0.77233
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
f7f9e135b7b33596eb8ef1d899e4b92d25545d49b8b8a83e51b3e0a5a052c48a
false
false
false
false
526
DPLParserTransform_anomalydetection.g4
teragrep_pth_03/src/main/antlr4/imports/DPLParserTransform_anomalydetection.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
3,570
ANTLR
.g4
67
49.80597
355
0.791583
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
92df696edee2a264d4cc9a5ad911c649efd9d268c66b7a6428a37af6807cbcb1
false
false
false
false
527
COMMAND_WHERE_MODE.g4
teragrep_pth_03/src/main/antlr4/imports/COMMAND_WHERE_MODE.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,517
ANTLR
.g4
57
42.263158
98
0.750917
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
c919552675e901733616be187a52dac54b9cf478b137ea559ab867b235bb8794
false
false
false
false
528
GET_NUMBER.g4
teragrep_pth_03/src/main/antlr4/imports/GET_NUMBER.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,651
ANTLR
.g4
60
42.366667
98
0.726605
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
45b99c0df5ef469e1f34f201044c2ffe522244a814e0e0decf2f1529f7e0790e
false
false
false
false
529
DPLParserTransform_analyzefields.g4
teragrep_pth_03/src/main/antlr4/imports/DPLParserTransform_analyzefields.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,295
ANTLR
.g4
52
41.442308
98
0.776333
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
cb3a624f209827ddf1ca2f5a95c2ff3e2334a035e60318e6e1d744407a547d7a
false
false
false
false
530
COMMAND_ABSTRACT_MODE.g4
teragrep_pth_03/src/main/antlr4/imports/COMMAND_ABSTRACT_MODE.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,690
ANTLR
.g4
59
43.661017
98
0.753817
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
8f34f4cda7988eef5b05e023f9ab93a4f8f5c1e57be0d16872f0e05a7267782d
false
false
false
false
531
COMMAND_APPENDPIPE_MODE.g4
teragrep_pth_03/src/main/antlr4/imports/COMMAND_APPENDPIPE_MODE.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
2,759
ANTLR
.g4
60
44.1
98
0.755019
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
ce50db1e71a41383ff0e49dc9f8033f787207d907c773b7f275c15883a4af235
false
false
false
false
532
COMMAND_DATAMODEL_MODE.g4
teragrep_pth_03/src/main/antlr4/imports/COMMAND_DATAMODEL_MODE.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
5,679
ANTLR
.g4
164
28.04878
108
0.544596
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
76ffbbcf2e802155c9a65f7ed34ef76afa7817ebdf9700aab981569a7e58b416
false
false
false
false
533
COMMAND_MAKERESULTS_MODE.g4
teragrep_pth_03/src/main/antlr4/imports/COMMAND_MAKERESULTS_MODE.g4
/* * Teragrep Data Processing Language Parser Library PTH-03 * Copyright (C) 2019, 2020, 2021, 2022 Suomen Kanuuna Oy * * 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 versi...
5,730
ANTLR
.g4
164
28.256098
114
0.542883
teragrep/pth_03
0
4
34
AGPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
56bdac7de0d03f8973aeca081a2fccf33404ff29c76262731c6a69f8380fa67c
false
false
false
false
534
bath_clamp-Route14.g4
lucask07_covg_clamp/gerber/bath_clamp-Route14.g4
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.1.12-1-10_14)* G04 #@! TF.CreationDate,2022-04-11T16:53:27-05:00* G04 #@! TF.ProjectId,bath_clamp,62617468-5f63-46c6-916d-702e6b696361,rev?* G04 #@! TF.SameCoordinates,Original* G04 #@! TF.FileFunction,Copper,L4,Inr* G04 #@! TF.FilePolarity,Positive* %FSLAX46Y46*% G04 Gerbe...
395,534
ANTLR
.g4
17,466
21.645941
74
0.952739
lucask07/covg_clamp
0
0
8
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
3ce743ad2c27405e7c25ea46935af7e2de634a91bc47e545e44814a8493b401b
false
false
false
false
535
Python_test.g4
ac25ville_PoplParserProject/Python_test.g4
grammar Python_test; fileInput: (NEWLINE | statement)* EOF; statement: simple_state | compound_state; simple_state: (arithmetic | SKIP_ | variableDeclaration | functionCall | breakState); compound_state: (ifState | whileLoop | forLoop | elseState); ifState : (IF | ELIF) OPEN_PAREN? NAME (comp_ops | arith_ops) (DIG...
1,989
ANTLR
.g4
72
26.263889
125
0.634494
ac25ville/PoplParserProject
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
3d84867af2febdc5541c2eaaac4d23af1074f01e49a3f4b71d005cbbbeeb83f8
false
false
false
false
536
DQL.g4
rnapoles_DQL-Grammar/DQL.g4
grammar DQL; queryLanguage : (selectStatement)? EOF | (updateStatement)? EOF | (deleteStatement)? EOF ; selectStatement : selectClause fromClause (whereClause)? (groupByClause)? (havingClause)? (orderByClause)? ; updateStatement : updateClause (whereClause)? ; deleteStatement : d...
13,299
ANTLR
.g4
487
23.166324
251
0.695354
rnapoles/DQL-Grammar
0
0
0
LGPL-2.1
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
b50a89e24baf475645249ef042d0631cf115834be5c0ce6a3c8dee171307f9e7
false
false
false
false
537
hw-tele-stern-In3_Cu (3v3).g4
shorlee_TeleSTERN/Gerber Files/hw-tele-stern-In3_Cu (3v3).g4
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,8.0.3* G04 #@! TF.CreationDate,2024-07-31T22:39:35+02:00* G04 #@! TF.ProjectId,hw-tele-stern,68772d74-656c-4652-9d73-7465726e2e6b,rev2 w/ output diodes* G04 #@! TF.SameCoordinates,Original* G04 #@! TF.FileFunction,Copper,L4,Inr* G04 #@! TF.FilePolarity,Positive* %FSLAX46Y46*% ...
466,437
ANTLR
.g4
18,432
24.305827
389
0.91624
shorlee/TeleSTERN
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
f1a6a1a2efeb5d804cf83090f0017dd46593c1e65f9777c6863ecef6f2817e40
false
false
false
false
538
reactor.g4
kbaldor_reactor/src/grammar/reactor.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...
3,222
ANTLR
.g4
165
14.927273
72
0.668482
kbaldor/reactor
0
0
0
EPL-1.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
8277ecafa987b2e9903822c21c92f002bb31a82a340102b4a45ba5cf2abba36e
false
false
false
false
539
scanner1.g4
ProgrammerTurnedOutward_S2019_Compilers/scanner1.g4
lexer grammar scanner1; // given KEYWORD: 'PROGRAM'|'BEGIN'|'END'|'FUNCTION'|'READ' |'WRITE'|'IF'|'ELSE'|'FI'|'FOR'|'ROF'|'RETURN' |'INT'|'VOID'|'STRING'|'FLOAT'|'WHILE'|'ENDIF' |'ENDWHILE'; // any letter followed by zero or more letters or numbers IDENTIFIER: LETTER + (LETTER|DIGIT)*; // any ...
1,284
ANTLR
.g4
32
37.3125
72
0.559936
ProgrammerTurnedOutward/S2019_Compilers
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
366d4f19320e5d94cf1eb3e698c38c16113070a4f6e6843301598a3dd8766888
false
false
false
false
540
UnicodeClasses.g4
AaronSong321_KSharp/KSharpFrontend/src/Grammar/UnicodeClasses.g4
/** * Kotlin lexical grammar in ANTLR4 notation (Unicode classes) * * Taken from http://www.antlr3.org/grammar/1345144569663/AntlrUnicode.txt */ lexer grammar UnicodeClasses; @header { #pragma warning disable 3021 } UNICODE_CLASS_LL: '\u0061'..'\u007A' | '\u00B5' | '\u00DF'..'\u00F6' | '\u00F8'..'\u00FF' | ...
23,173
ANTLR
.g4
1,644
12.097932
74
0.466939
AaronSong321/KSharp
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
5bac919c166f0a4afbc58b1411bb32457df00dc1d0f833dd9dab1603b1721dc1
false
false
false
false
541
KSharpParser.g4
AaronSong321_KSharp/KSharpFrontend/src/Grammar/KSharpParser.g4
parser grammar KSharpParser; options { tokenVocab=KSharpLexer; } @header { #pragma warning disable 3021 } decl : varDecl ; expr : IntegerLiteral # IntLit | expr opMul expr # BinExpr | expr opAdd expr # BinExpr ; opMul: Mul; opAdd: Add|Sub; id: Identifier; varDecl : varMut id Eq expr ; decls : decl (NL+ decl)* ;...
387
ANTLR
.g4
29
11.965517
35
0.755043
AaronSong321/KSharp
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
709cee65b1254d4eeeddbc985f4c01325f29379a894a88547f004dc1c02272b8
false
false
false
false
542
KSharpLexer.g4
AaronSong321_KSharp/KSharpFrontend/src/Grammar/KSharpLexer.g4
lexer grammar KSharpLexer; import UnicodeClasses; @header { #pragma warning disable 3021 } // SECTION: keywords VAL: 'val'; VAR: 'var'; // SECTION: operators Add: '+'; Sub: '-'; Mul: '*'; Eq: '='; NL: '\r'? '\n'; // SECTION: literals fragment DecDigit: '0'..'9'; fragment DecDigitNoZero: '1'..'9'; fragment DecDi...
2,629
ANTLR
.g4
116
19.215517
60
0.648036
AaronSong321/KSharp
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
5a1f9b595d1d8eb63a9c75779134689b73235c0aeeed8e115b51a8c5750c18d3
false
false
false
false
543
jsc.g4
giancarlopernudisegura_jsc/grammar/jsc.g4
grammar jsc; file : expr EOF ; object : LEFT_CURLY (pair (COMMA pair)*)? RIGHT_CURLY ; array : LEFT_BRACKET (expr (COMMA expr)*)? RIGHT_BRACKET ; pair : expr COLON expr ; expr : object | array | func | STRING | 'f' STRING | NUMBER | BOOLEAN | NULL ; ...
1,085
ANTLR
.g4
89
8.247191
54
0.48152
giancarlopernudisegura/jsc
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
c27fdc4a1ebd5e727f17e1a27518c2ab99b81295abb502a464fb8b474c866f57
false
false
false
false
544
classify16.g4
jlettvin_UniTree/classify16.g4
/** classify16.g4 Automatically generated Unicode 9.0.0 codepoint classification grammar. Generated by "UniGrammar.py". Author: Jonathan D. Lettvin (jlettvin@gmail.com) Date: 2017-06-23T04:47:54.878030 Legal: Copyright(c) Jonathan D. Lettvin, All Rights Reserved License:GPL 3.0 Rules are generated by extracting f...
146,342
ANTLR
.g4
3,034
43.310811
80
0.427357
jlettvin/UniTree
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
fadee7ee9b4fff397567ff5df4ec55bd73186eb5be63c714b94a66a46eba7f7d
true
true
false
false
545
classify21.g4
jlettvin_UniTree/classify21.g4
/** classify21.g4 Automatically generated Unicode 9.0.0 codepoint classification grammar. Generated by "UniGrammar.py". Author: Jonathan D. Lettvin (jlettvin@gmail.com) Date: 2017-06-23T04:47:54.882662 Legal: Copyright(c) Jonathan D. Lettvin, All Rights Reserved License:GPL 3.0 Rules are generated by extracting f...
193,653
ANTLR
.g4
3,862
45.203521
82
0.490603
jlettvin/UniTree
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
9653806ed8b42057f653451792da6ecdf85bb157c8ab3b3014bc715f76293150
false
false
false
false
546
test_Codepoint.g4
jlettvin_UniTree/test_Codepoint.g4
/** test_Codepoint.g4 Automatically generated Unicode based hello grammar. */ grammar test_Codepoint ; import classify16; prog : hello * EOF ; hello : 'hello' ID ; WS : [ \t\r\n] + -> skip // TODO classify rule ; ErrorCharacter : . ;
269
ANTLR
.g4
14
17.285714
52
0.64
jlettvin/UniTree
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
81d632a45e14ea12efe49e2cd5d25376b4c6427fd3157d5cb1040dd47f028688
false
false
false
false
547
demo.g4
mkrouwel_demosl/demo.g4
grammar demo; reserved_term : COORDINATION_ACT_NAME | COORDINATION_FACT_NAME | SPECIAL_TERM; COORDINATION_ACT_NAME : 'request' | 'promise' | 'declare' | 'accept' | 'decline' | 'reject' | 'revoke' | 'allow' | 'refuse'; COORDINATION_FACT_NAME : 'requested' | 'promised' | 'declared' | 'accepted' | 'declined' | 'rejected' ...
5,444
ANTLR
.g4
88
59.545455
216
0.757061
mkrouwel/demosl
0
0
0
GPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
24219a4513a5cc1f33f45fb1d1c7624e0795d0cdddf3b427f527486c3f8cea40
false
false
false
false
548
CPP_Record_Desc.g4
dpriedel_CPP_Antlr_Record_Desc/CPP_Record_Desc.g4
/* NOTE: Empty lines are NOT allowed in record description files because I can't find a good way to handle them in Antlr4. So...use comment lines (//) instead. NOTE: there are some extra parser rules that are not actually needed to process the Record_Desc files, such as those related to field ...
9,889
ANTLR
.g4
277
21.646209
112
0.43492
dpriedel/CPP_Antlr_Record_Desc
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
4623ab2aabc5e92a603cabfe92a3e5dec89d15401ead3dcd09aee1b1d75925ab
false
false
false
false
549
Java8.g4
QAston_java-editorconfig-generator/src/main/antlr4/qaston/editorconfig/javagrammar/Java8.g4
/* * [The "BSD license"] * Copyright (c) 2014 Terence Parr * Copyright (c) 2014 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
31,671
ANTLR
.g4
1,458
19.772291
133
0.760354
QAston/java-editorconfig-generator
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
333cef04da23cdcb36b61f5c7c0aa0e7c47d6badf335c4bed214784a5f6fc323
false
false
false
false
550
ANTLRv4Lexer.g4
JeffFaer_javaspec2antlr4/src/main/antlr4/falgout/js2a4/ANTLRv4Lexer.g4
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
9,687
ANTLR
.g4
302
29.145695
97
0.567067
JeffFaer/javaspec2antlr4
0
0
0
GPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
0d879eb87e7b6afb24afbad8388f871742772cac19fbdc62f45dfd951ea2df9a
true
true
false
false
551
JavaParser2.g4
JeffFaer_javaspec2antlr4/src/main/antlr4/falgout/js2a4/JavaParser2.g4
parser grammar JavaParser2; options { tokenVocab = JavaLexer; } packageName : Identifier (DOT Identifier)* ; typeName : Identifier | packageOrTypeName DOT Identifier ; packageOrTypeName : Identifier (DOT Identifier)* ; expressionName : Identifier | ambiguousName ...
20,262
ANTLR
.g4
855
19.405848
143
0.745984
JeffFaer/javaspec2antlr4
0
0
0
GPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
ffc874a0b27a7d85e4838d2b292c414664b6476ea17020d95d45e893cb4d6b9b
true
true
false
false
552
JavaLexer.g4
JeffFaer_javaspec2antlr4/src/main/antlr4/falgout/js2a4/JavaLexer.g4
lexer grammar JavaLexer; /* 3.9 */ ABSTRACT: 'abstract'; ASSERT: 'assert'; BOOLEAN: 'boolean'; BREAK: 'break'; BYTE: 'byte'; CASE: 'case'; CATCH: 'catch'; CHAR: 'char'; CLASS: 'class'; CONST: 'const'; CONTINUE: 'continue'; DEFAULT: 'default'; DO: 'do'; DOUBLE: 'double'; ELSE: 'else'; ENUM: 'enum'; EXTENDS: 'extends'; ...
5,125
ANTLR
.g4
310
13.348387
56
0.643526
JeffFaer/javaspec2antlr4
0
0
0
GPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
3e7353e2691a6d9d8cc134183bf5a22ff71bf9603ae3e38ef8f24df699e2a5c8
false
false
false
false
553
ANTLRv4Parser.g4
JeffFaer_javaspec2antlr4/src/main/antlr4/falgout/js2a4/ANTLRv4Parser.g4
/* * [The "BSD license"] * Copyright (c) 2013 Terence Parr * Copyright (c) 2013 Sam Harwell * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code...
6,402
ANTLR
.g4
308
18.581169
77
0.752155
JeffFaer/javaspec2antlr4
0
0
0
GPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
b9059c1c201fbfdf220610e8e0b1477cf429fbb488a9c6108d833e095d5b4bb4
true
true
false
false
554
JavaParser.g4
JeffFaer_javaspec2antlr4/src/main/antlr4/falgout/js2a4/JavaParser.g4
parser grammar JavaParser; options { tokenVocab = JavaLexer; } packageName : Identifier (DOT Identifier)* ; typeName : Identifier | packageOrTypeName DOT Identifier ; packageOrTypeName : Identifier (DOT Identifier)* ; expressionName : Identifier | ambiguousName D...
20,397
ANTLR
.g4
861
19.399535
143
0.746619
JeffFaer/javaspec2antlr4
0
0
0
GPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
db725c2b49fa83dd5a097af68a9b3e144f315af07119d449c60be7cb22ab5610
false
false
false
false
555
Specification.g4
JeffFaer_javaspec2antlr4/src/main/antlr4/falgout/js2a4/Specification.g4
grammar Specification; BAR: '|'; L_CURLY: '{'; R_CURLY: '}'; L_BRACKET: '['; R_BRACKET: ']'; UNDERSCORE: '_'; Token : (LETTER | DIGIT | UNDERSCORE)+ ; fragment LETTER: [a-zA-Z]; fragment DIGIT: [0-9]; WS: [ ] -> skip; rhs : syntax (BAR syntax)* EOF ; syntax : Token+ syntax? | opti...
461
ANTLR
.g4
29
12.413793
36
0.602941
JeffFaer/javaspec2antlr4
0
0
0
GPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
c568c4c9537ade39b1fa58fce9c6cdd008f27f9fff36103acd384fdd6c3023ad
false
false
false
false
556
NQuads.g4
almibe_xDEADx-ligature-grammar/src/main/antlr4/org/almibe/ligature/parser/nquads/NQuads.g4
grammar NQuads; nQuadsDoc : statement? (EOL statement)* EOL? ; statement : subject predicate object graphLabel '.' ; subject : IRIREF | BLANK_NODE_LABEL ; predicate : IRIREF ; object : IRIREF | BLANK_NODE_LABEL | literal ; graphLabel : IRIREF | BLANK_NODE_LABEL ; literal : STRING_LITERAL_QUOTE (LIT...
1,635
ANTLR
.g4
79
18.708861
309
0.506536
almibe/xDEADx-ligature-grammar
0
0
2
MPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
68ec9119f0312503930999e66f1e654ab129e2d47fc0d4af011ed763f0494b88
false
false
false
false
557
NTriples.g4
almibe_xDEADx-ligature-grammar/src/main/antlr4/org/almibe/ligature/parser/ntriples/NTriples.g4
grammar NTriples; nTriplesDoc : triple? (EOL triple)* EOL? ; triple : subject predicate object PERIOD ; subject : IRIREF | BLANK_NODE_LABEL ; predicate : IRIREF ; object : IRIREF | BLANK_NODE_LABEL | literal ; literal : STRING_LITERAL_QUOTE (LITERAL_TYPE IRIREF | LANGTAG)? ; LANGTAG : '@' LANG ; f...
1,578
ANTLR
.g4
76
18.776316
309
0.498307
almibe/xDEADx-ligature-grammar
0
0
2
MPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
3777183c8b4ac8acfd2ea24459f0cba45e7037d1bb2244dac4393ffeeef036cc
false
false
false
false
558
ModalTurtleLexer.g4
almibe_xDEADx-ligature-grammar/src/main/antlr4/org/almibe/ligature/parser/turtle/ModalTurtleLexer.g4
lexer grammar ModalTurtleLexer; //START TOKENS START_IRI : '<' -> pushMode(IRI); START_TRIPLE_SINGLE_QUOTE : '\'\'\'' -> pushMode(TRIPLE_SINGLE_QUOTE); START_TRIPLE_DOUBLE_QUOTE : '"""' -> pushMode(TRIPLE_DOUBLE_QUOTE); START_SINGLE_QUOTE : '\'' -> pushMode(SINGLE_QUOTE); START_DOUBLE_QUOTE : '"' -> pushMode(DOUBLE_QU...
3,907
ANTLR
.g4
131
28.030534
309
0.531852
almibe/xDEADx-ligature-grammar
0
0
2
MPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
42012161a041dec79d22fe023bdf85e47f5809803732686a58d5982cf6593d72
false
false
false
false
559
Turtle.g4
almibe_xDEADx-ligature-grammar/src/main/antlr4/org/almibe/ligature/parser/turtle/Turtle.g4
parser grammar Turtle; options { tokenVocab = ModalTurtleLexer; } turtleDoc : statement* ; statement : directive | triples '.' ; directive : prefixID | base | sparqlPrefix | sparqlBase ; prefixID : '@prefix' PNAME_NS iriRef '.' ; base : '@base' iriRef '.' ; sparqlBase : START_SPARQL_BASE iriRef ; sp...
1,528
ANTLR
.g4
82
16.585366
91
0.745775
almibe/xDEADx-ligature-grammar
0
0
2
MPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
9035041572e1f6a40648544658a00da9fa6c8b0f7f13b2deeed3132232319686
false
false
false
false
560
Sparql.g4
almibe_xDEADx-ligature-grammar/src/main/antlr4/org/almibe/ligature/parser/sparql/Sparql.g4
parser grammar Sparql; options { tokenVocab = SparqlTerminals; } commandUnit //0 : queryUnit | updateUnit ; queryUnit //1 : query ; query //2 : prologue ( selectQuery | constructQuery | describeQuery | askQuery ) valuesClause ; updateUnit //3 : update ; prologue //4 : ( baseDecl | prefixDecl )* ; baseD...
12,703
ANTLR
.g4
541
21.249538
268
0.770171
almibe/xDEADx-ligature-grammar
0
0
2
MPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
433f707a6ab9a2800c8cade4841e0b1a408f373759e5bde9cdc399a36daa529d
false
false
false
false
561
SparqlTerminals.g4
almibe_xDEADx-ligature-grammar/src/main/antlr4/org/almibe/ligature/parser/sparql/SparqlTerminals.g4
lexer grammar SparqlTerminals; IRIREF //139 : '<' IRI '>' ; fragment IRI : (~('\u0000' .. '\u0020' | '<' | '>' | '"' | '{' | '}' | '|' | '^' | '`' | '\\') | UCHAR)+ ; fragment UCHAR //possible dupe : '\\u' HEX HEX HEX HEX | '\\U' HEX HEX HEX HEX HEX HEX HEX HEX ; PNAME_NS //140 : PN_PREFIX? ':' ; PNAME_LN ...
6,826
ANTLR
.g4
569
10.024605
131
0.495724
almibe/xDEADx-ligature-grammar
0
0
2
MPL-2.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
4644c24333e254f7bd7e882e4e240cacca6f2ad15b75d042d3b545bd19def4b0
false
false
false
false
562
ezuino.g4
sw415f19_Kridtsko/ezuino.g4
grammar ezuino; start: dcls stmts; dcls: dcl* ; dcl: INTDCL ID | DOUBLEDCL ID | STRINGDCL ID | BOOLDCL ID; stmts: stmt* ; stmt: ID ASSIGN val expr | ID ASSIGN booleantf | PRINT ID ; expr: (PLUS val)* | ...
1,343
ANTLR
.g4
52
22.25
49
0.333074
sw415f19/Kridtsko
0
0
1
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
a39a950a1d2ce2a9289602096861db65606e081239b3c2035176b406cde93769
false
false
false
false
563
SL.g4
Luncert_SL/SL.g4
grammar SL; tokens { INDENT, DEDENT, NEWLINE, ENDMARKER } script: ; func: 'def' NAME parameters ':' suite ; parameters: '(' (argslist)? ')' ; argslist: NAME (',' NAME)* ; suite: NEWLINE stmt+ DEDENT ; stmt: simple_stmt | compoud_stmt ; test: or_test ('if' or_test 'else' test)? | lambdef ...
2,720
ANTLR
.g4
108
21.703704
90
0.505946
Luncert/SL
0
0
0
GPL-3.0
9/19/2024, 2:49:36 PM (Europe/Amsterdam)
38ed12a222b5d712bc2d08c322a3ca5fda3cbd2a04f5aa4595949b2999c65561
false
false
false
false