lukewberg / Glamdring

A JS/TS lexer/bundler written in Rust without the use of AI

Home Page:https://www.glamdring.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webLex

A JavaScript and Typescript transpiler and bundler.

Currently a work in progress. This is an exercise in learning Rust and expanding my knowledge of CS fundamentals. Hence, the use of AI programming tools and code generation has been prohibited. The only use of AI by myself is for the purpose of conducting research and answering questions about compilers and their components.

Roadmap

  • Lexer (current WIP)
  • Parser
  • AST
  • Transpiler
  • Bundler
  • CLI
  • Tests
  • Documentation

Anatomy and methodology

  • The lexer is a hand-written lexer that uses a state machine to tokenize the input.
  • The parser is a recursive descent parser that uses a predictive parsing table to parse the tokens.
  • The AST is a tree structure that is generated by the parser.

Resources used

About

A JS/TS lexer/bundler written in Rust without the use of AI

https://www.glamdring.dev


Languages

Language:Rust 100.0%