This repository was archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Explainer: Lexing #1
Copy link
Copy link
Open
Labels
Description
This explainer demonstrates the lexing process in a compiler. It is a simple demonstration where you can type into a text box and the list of tokens updates in real time.
This explainer should use C's lexing rules as laid out in Annex A.1 of the C99 spec. Line and block comments should also be supported, and their contents ignored.
Ideally, all aspects of the lexical grammar would be supported, but if this is too difficult, please just ask questions here and we can work out which parts are most important.
Functional requirements:
- Can lex and display the output of up to 1000 characters of C code in real time, comfortably maintaining 60fps as the user types.
- Exhibits all the behaviors laid out in the Figma.
