Achieve 99.996% Test262 conformance (52631/52633 tests passing)
Major parser improvements for ES2024 conformance:
- Add peek3 function for 3-token lookahead in lexer
- Fix new import.source(...) and new import.defer(...) to be syntax errors
- Fix 'using' declarations: disallow directly in switch case clauses per spec
- Add UTF-8 encoding for unicode escape sequences in strings
- Add unpaired surrogate detection for module export names
- Improve strict mode handling for legacy octal escapes
New modules:
- regexp_validator.ml: Regular expression validation per ES spec
- unicode_properties.ml: Unicode property escapes for regex
Documentation improvements:
- Add comprehensive ocamldoc to parser.mli and lexer.mli
- Add section headers and detailed function documentation
- Improve test runner documentation with usage examples
The 2 remaining failures are staging tests that conflict with the
finalized ES spec (they expect 'using' in switch case to work, but
the spec explicitly requires a syntax error).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>