Overview of Oxc Lexer
mainOxc Lexer is a standalone, spec-compliant lexer designed for JavaScript (JS), JSX, and TypeScript (TS). It is engineered for high performance with the following characteristics:
- Compliance: Fully Test262 compliant.
- Language Support: Native support for TS and JSX.
- Performance Optimizations:
- SIMD: Utilizes SIMD on
x86_64platforms withAVX2. Other platforms currently use scalar implementations (work in progress). - UTF-8 Validation: Includes an optional parameter for UTF-8 validation, which has a cost of approximately 0.15 CPB (Cycles per byte).
- Edge Case Handling: Specifically handles complex Regex vs. Division cases, even in pathological scenarios.
- SIMD: Utilizes SIMD on