-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failure to compile when adding almost-equal operator (Lexing and Parsing) #6
Comments
This is defined in |
In that case, the steps are in the wrong sequence. this is an error in the book. The regen steps in CPython changed multiple times on editing. |
Thanks for the quick response! When I add the token to
Specificially, starting from the previous state, I
|
That's expected. There is a comment at the end of the chapter about the compiler not understanding it. You'll update the compiler in the next chapter :-) p.s. yes that error is funny (follow the link) |
Okay, I see it now. Thanks. As I recall, the first time I came into this state while trying to trouble-shoot this on my own the As long as you're touching this text, it might not hurt to make it explicit that at this stage testing the operator directly will blow up in this way, in case anyone else gets cross-threaded in these parts. Didn't need to follow the link, the comic is a classic :) The error message itself is also funny... the first time. |
Attempting to work the almost-equal example in the Lexing and Parsing section, I get an error.
Steps:
make regen-token regen-pegen
make -j2 -s
Note: experienced this error on both Mac and Linux machines.
Diff before regenerating headers:
The text was updated successfully, but these errors were encountered: