73e1238e20
- Replace flat parser with state machine (Normal/Decorator/InFunction) - Change parse_script to accept reference and add proper error handling - Add Function::find_decorator helper method - Refactor build_script to accept &Function and support @if/@export decorators - Add condition code generation for @if decorator - Add export/preexport code for environment variable capture - Handle trivial scripts by creating Function directly - Add constants: PIPELINE_SKIP_ERRORCODE and TRIVIAL_SCRIPT_NAME - Temporarily disable order-based sorting assertion (see TODO) - Add empty finalize.rs module skeleton - Update integration tests to expect errors appropriately