#codegen #css #telecss

tele_codegen

A CSS code generator that generates CSS code from the AST generated by tele_parser

1 unstable release

0.2.0 Mar 26, 2022

#1769 in Development tools

MIT license

53KB
1.5K SLoC

Telecss (WIP)

CSS tokenizer, parser, transformer, written in Rust.

This project is mainly based on the following specs:

Benchmark

Benchmarks on each commit: https://telecss.github.io/telecss/dev/bench/

This benchmark is based on parsing/tokenizing the crates/telecss/examples/normalizecss/normalize.css file, and the time-consuming of parsing includes the time-consuming of tokenizing:

  • Pure Parsing Time = Parsing Time - Tokenizing Time

TODO

Current Focus

  • parsing selectors

Schedule


lib.rs:

A CSS code generator that generates CSS code from the AST generated by tele_parser

Dependencies

~0.3–1MB
~21K SLoC