Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 1.25 KB

ARCHITECTURE.md

File metadata and controls

38 lines (21 loc) · 1.25 KB

swc Archtecture

This document gives a high level overview of swc internals. You may find it useful if you want to contribute to swc or if you are interested in the inner workings of swc.

Macros

swc uses proc macro extensively to reduce work. Please see links below to know what each macro do.

And some adhoc-macros are used.

These macro breaks macro hygiene.

Tests

swc uses official ecmascript conformance test suite called test262 for testing.

Parser tests ensures that parsed result of test262/pass is identical with test262/pass-explicit.

Codegen tests ensures that generated code is equivalent to goldened reference files located at tests/references.