/yourhtml

An html lexer implemented as defined in the HTML Standard - Tokenization

Primary LanguageC++MIT LicenseMIT

yourhtml lexer

Build Status

A hand rolled lexer implemented as described in HTML Living Standard Tokenization.

Building

Dependencies

  • clang - c++ compiler
  • ib - c++ build tool
git submodule init
git submodule update

# run all tests
ib --test_all test

# build a single test
ib test/simple_token-test

# run
../out/debug/test/selector-test

Example

int main(int, char*[]) {
  // TODO
  return 0;
}