Skip to content

Commit ebe610b

Browse files
authored
add peg parser
1 parent cb4f652 commit ebe610b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ class code(object)
180180
...
181181
```
182182

183+
### 15. python 3.9 PEG parser
184+
`__peg_parser__` is a keyword in python 3.9, will throw a syntax error if used
185+
```py
186+
>>> __peg_parser__
187+
File "<stdin>", line 1
188+
__peg_parser__
189+
^
190+
SyntaxError: You found it!
191+
```
192+
183193
## Notes
184194
1. Easiest hello world program in a language without calling any function
185195
2. Each and every line is the philosophy of Python's design and is a supreme holy guide
@@ -194,6 +204,7 @@ class code(object)
194204
11. The original code is [here](https://github.com/python/cpython/blob/master/Lib/antigravity.py) with the [xkcd comic](https://xkcd.com/426/) referenced, and maybe that's why this is also in the `antigravity` module
195205
12. The [PEP 401](https://www.python.org/dev/peps/pep-0401/) is an April Fools' Joke - The PEP's number is 401, i.e. 4/01 or April 1st (April Fools' Day). The PEP states that Guido van Rossum is stepping down. The new title given to him would be pronounced "BDEVIL" (Benevolent Dictator Emeritus Vacationing Indefinitely from the Language) and Guido's successor will be Barry Warsaw, or as he is affectionately known, Uncle Barry. Uncle Barry's official title is "FLUFL" (Friendly Language Uncle For Life). There are in-jokes about the Parrot virtual machine and the "non-existent" Python Secret Underground (possibly a throw-back to ["TINC" on USENET](https://en.wikipedia.org/wiki/There_Is_No_Cabal)).
196206
13. [Source](https://www.reddit.com/r/Python/comments/6wrd8t/nice_lil_easter_egg_i_suppose/).
207+
14. See [this answer](https://stackoverflow.com/a/65487013/14362510)
197208

198209
## Add more
199210

0 commit comments

Comments
 (0)