Skip to content

feat(lexer): add string interpolation lexing - #11

Merged
ofabiodev merged 8 commits into
mainfrom
add-string-interpolation-lexer
Jul 26, 2026
Merged

feat(lexer): add string interpolation lexing#11
ofabiodev merged 8 commits into
mainfrom
add-string-interpolation-lexer

Conversation

@ofabiodev

Copy link
Copy Markdown
Member

Summary

Adds complete lexer support for quoted strings and string interpolation.

Changes

  • Add string tokens, escape decoding, literal brace handling, and interpolation lexing.
  • Add diagnostics and recovery for malformed strings and interpolations.
  • Add coverage for nested expressions, inner strings, offsets, and recovery behavior.

Testing

make test
make build
cd src
go vet ./...

@ofabiodev ofabiodev added kind/feature New behavior or capability. kind/test Tests, fixtures, golden files, or test infrastructure. area/lexer Lexer, tokens, spans, metadata, and lexer diagnostics. puff/syntax Puff language syntax and grammar behavior. puff/interpolation String interpolation, escapes, and string tokenization. labels Jul 26, 2026
@ofabiodev
ofabiodev force-pushed the add-string-interpolation-lexer branch from 0ba4827 to 6ca4aae Compare July 26, 2026 15:12
@ofabiodev
ofabiodev merged commit 8484bd4 into main Jul 26, 2026
2 checks passed
@ofabiodev
ofabiodev deleted the add-string-interpolation-lexer branch July 26, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/lexer Lexer, tokens, spans, metadata, and lexer diagnostics. kind/feature New behavior or capability. kind/test Tests, fixtures, golden files, or test infrastructure. puff/interpolation String interpolation, escapes, and string tokenization. puff/syntax Puff language syntax and grammar behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant