shrimp/src/compiler
Corey Johnson cb62fdf437 feat(compiler): add PipeExpr compilation support
Implement Task 6 from docs/plans/2025-10-12-pipe-expressions.md

- Add pipe operator (|) termination to tokenizer
- Update grammar to include expressionWithoutIdentifier in pipeOperand
- Add PipeExpr case to compiler switch statement
- Implement pipe compilation: piped value becomes first argument
- Store piped values in temporary __pipe_value variable
- Handle both FunctionCallOrIdentifier and FunctionCall operands
- Add integration tests for pipe expressions

Tests:
- Simple pipe (5 | double) works correctly
- Additional tests exist but have pre-existing issues with function parameters

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 17:00:17 -07:00
..
compiler.test.ts hell yeah 2025-10-10 15:50:09 -07:00
compiler.ts feat(compiler): add PipeExpr compilation support 2025-10-12 17:00:17 -07:00
compilerError.ts hell yeah 2025-10-10 15:50:09 -07:00
pipe.test.ts feat(compiler): add PipeExpr compilation support 2025-10-12 17:00:17 -07:00
utils.ts hell yeah 2025-10-10 15:50:09 -07:00