WIP2#2020
Draft
charlespwd wants to merge 17 commits into
Draft
Conversation
charlespwd
force-pushed
the
cp-expression-refactor
branch
from
December 3, 2025 17:46
9e95ad0 to
5e3d8f4
Compare
charlespwd
force-pushed
the
cp-one-parser
branch
from
January 12, 2026 16:44
d22ead1 to
3a675a4
Compare
charlespwd
force-pushed
the
cp-expression-refactor
branch
from
January 12, 2026 16:56
5e3d8f4 to
34101f9
Compare
charlespwd
force-pushed
the
cp-one-parser
branch
3 times, most recently
from
January 14, 2026 14:55
d0ccab5 to
f4a5454
Compare
charlespwd
force-pushed
the
cp-expression-refactor
branch
from
January 14, 2026 14:57
34101f9 to
806c613
Compare
charlespwd
force-pushed
the
cp-expression-refactor
branch
from
January 26, 2026 16:06
806c613 to
1cb61d0
Compare
- Make `Parser` accept the expression cache - Remove `safe_parse_expression` from `ParseContext` - Replace all usage of `safe_parse_expression` with `parser.expression_node`
- Add Parser#string - Add Parser#unsafe_parse_expression - Add private Parser#parse_expression - Remove ParseContext.parse_expression - Remove Tag.parse_expression - Condition.parse_expression now takes a parser as argument
We don't need all the multi-dot logic in a world where number comes out of the Lexer.
Goal is to get rid of it entirely, but baby steps.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
charlespwd
force-pushed
the
cp-expression-refactor
branch
from
January 27, 2026 15:00
1cb61d0 to
6f03452
Compare
graygilmore
removed their request for review
March 23, 2026 16:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Architectural changes
parse_expressionandsafe_parse_expressionhave been removed fromTagandParseContextParsermethods now produce AST nodes instead of stringsParser#expressionproduces a value,Parser#stringproduces a string,Breaking changes
Parser#expressionis renamed toParser#expression_stringsafe_parse_expressionmethods are replaced byParser#expressionparse_expressionmethods are replaced byParser#unsafe_parse_expression