Skip to content

Commit bb66444

Browse files
authored
Merge pull request #2754 from StochasticTinkr/fix-gramamr-typo
replace gramamr with grammar
2 parents 2d9f45d + 0d73fc2 commit bb66444

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

contributors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,4 @@ YYYY/MM/DD, github id, Full name, email
239239
2019/11/18, mlilback, Mark Lilback, [email protected]
240240
2020/02/02, carocad, Camilo Roca, [email protected]
241241
2020/02/10, julibert, Julián Bermúdez Ortega, [email protected]
242+
2020/02/21, StochasticTinkr, Daniel Pitts, [email protected]

tool/src/org/antlr/v4/parse/ANTLRLexer.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ UnicodeBOM
805805
// lexer specification. It matches a single character of any value and being
806806
// the last rule in the file will match when no other rule knows what to do
807807
// about the character. It is reported as an error but is not passed on to the
808-
// parser. This means that the parser to deal with the gramamr file anyway
808+
// parser. This means that the parser to deal with the grammar file anyway
809809
// but we will not try to analyse or code generate from a file with lexical
810810
// errors.
811811
//

tool/src/org/antlr/v4/parse/ANTLRParser.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ delegateGrammars
270270
: IMPORT delegateGrammar (COMMA delegateGrammar)* SEMI -> ^(IMPORT delegateGrammar+)
271271
;
272272
273-
// A possibly named grammar file that should be imported to this gramamr
273+
// A possibly named grammar file that should be imported to this grammar
274274
// and delgated to for the rules it specifies
275275
delegateGrammar
276276
: id ASSIGN^ id
@@ -725,7 +725,7 @@ labeledElement
725725
)
726726
;
727727
728-
// A block of gramamr structure optionally followed by standard EBNF
728+
// A block of grammar structure optionally followed by standard EBNF
729729
// notation, or ANTLR specific notation. I.E. ? + ^ and so on
730730
ebnf
731731
: block

0 commit comments

Comments
 (0)