Skip to content

Conversation

@sgulseth
Copy link
Member

@sgulseth sgulseth commented Oct 20, 2025

Description

Alternative to #308

Adds support for parsing custom functions by using marks to replace during parsing. Replaces all the custom function definition during mark processing

What to review

Testing

Added som basic tests to the parser, and enabled custom functions tests from the groq test suite

@sgulseth sgulseth force-pushed the feat/support-custom-fn branch from 8a41eb4 to 54a5abf Compare October 23, 2025 21:17
}
const processor = new MarkProcessor(input, result.marks, options)
return processor.process(EXPR_BUILDER)
validateCustomFunctions(input, result.customFunctions)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one ensures that we also validate unused functions

@sgulseth sgulseth force-pushed the feat/support-custom-fn branch from 54a5abf to e4efda3 Compare October 23, 2025 21:33
@sgulseth sgulseth marked this pull request as ready for review October 23, 2025 21:43
@sgulseth sgulseth requested a review from judofyr October 23, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant