Skip to content

Commit 46495ab

Browse files
ntzmnikic
authored andcommitted
Fix typo in grammar/README.md
1 parent f7cb00d commit 46495ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

grammar/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
What do all those files mean?
22
=============================
33

4-
* `php5.y`: PHP 5 grammar written in a pseudo language
5-
* `php7.y`: PHP 7 grammar written in a pseudo language
6-
* `tokens.y`: Tokens definition shared between PHP 5 and PHP 7 grammars
7-
* `parser.template`: A `kmyacc` parser prototype file for PHP
8-
* `tokens.template`: A `kmyacc` prototype file for the `Tokens` class
9-
* `rebuildParser.php`: Preprocesses the grammar and builds the parser using `kmyacc`
4+
* `php5.y`: PHP 5 grammar written in a pseudo language
5+
* `php7.y`: PHP 7 grammar written in a pseudo language
6+
* `tokens.y`: Tokens definition shared between PHP 5 and PHP 7 grammars
7+
* `parser.template`: A `kmyacc` parser prototype file for PHP
8+
* `tokens.template`: A `kmyacc` prototype file for the `Tokens` class
9+
* `rebuildParsers.php`: Preprocesses the grammar and builds the parser using `kmyacc`
1010

1111
.phpy pseudo language
1212
=====================
@@ -16,13 +16,13 @@ applied to it:
1616

1717
* Nodes are created using the syntax `Name[..., ...]`. This is transformed into
1818
`new Name(..., ..., attributes())`
19-
* Some function-like constructs are resolved (see `rebuildParser.php` for a list)
19+
* Some function-like constructs are resolved (see `rebuildParsers.php` for a list)
2020

2121
Building the parser
2222
===================
2323

2424
In order to rebuild the parser, you need [moriyoshi's fork of kmyacc](https://github.com/moriyoshi/kmyacc-forked).
25-
After you compiled/installed it, run the `rebuildParser.php` script.
25+
After you compiled/installed it, run the `rebuildParsers.php` script.
2626

2727
By default only the `Parser.php` is built. If you want to additionally emit debug symbols and create `y.output`, run the
2828
script with `--debug`. If you want to retain the preprocessed grammar pass `--keep-tmp-grammar`.

0 commit comments

Comments
 (0)