Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Conversation

ryangjchandler
Copy link
Contributor

@ryangjchandler ryangjchandler commented Dec 9, 2022

Closes #161.

I'm returning SyntaxErrors from the parser, but don't really care at this point. Handling the intricacies of heredocs & nowdocs in the parser is SO much easier than carrying state around inside of a StackFrame and having to mess with the borrow checker.

I ran the Symfony and Laravel third party tests and there's no sign of heredoc/nowdoc errors so I'm taking that as a win.

I'm more or less praying that it's all correct and that I never have to come back to this, lol. In theory though, this code with the comments is much easier to debug going forward. Debugging errors in the lexer before was impossible, at least now all the heavy lifting is done in the parser.

@ryangjchandler ryangjchandler force-pushed the fix/rc/better-heredoc-nowdoc-parsing branch from 4f5e503 to eb460c0 Compare December 9, 2022 01:40
@ryangjchandler ryangjchandler force-pushed the fix/rc/better-heredoc-nowdoc-parsing branch from eb460c0 to 3e9bc95 Compare December 9, 2022 01:42
@ryangjchandler ryangjchandler merged commit 825577d into main Dec 9, 2022
@ryangjchandler ryangjchandler deleted the fix/rc/better-heredoc-nowdoc-parsing branch December 9, 2022 01:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant