Commit graph

4 commits

Author SHA1 Message Date
cba7f2b58f Token: Rewrite using classes, initial range implementation 2022-01-04 00:40:12 +01:00
be84284020 Everywhere: Remove source location prefix from assertions
When an assertion gets called the stacktrace provides enough
source information anyways
2021-10-24 23:11:34 +02:00
5afae11193 Everywhere: Replace calls to console.assert and throws with assertions
This patch replaces console.assert calls and random throw new Error
calls to crash on undefined behavior with predefined assertion
functions from utils.
2021-10-24 23:06:35 +02:00
586546ee57 Everywhere: Rework website concept completely
This patch removes the Next.js React project that was contained
by this repository previously. The replacement is a vanilla HTML
page with TypeScript that parses it's own HTML source and highlights
it using on load.

The concept will be iterated on in following commits, planned are
on hover tooltips showing metadata about HTML tokens as well as
tokenizing (perhaps parsing) of JavaScript and CSS to be able to
highlight those sections as well. To properly determent the range
of script and style sections it might be required to also implement
HTML tree building, however on read execution of JavaScript or
on the fly parsing as well as fragment parsing is not required for
the site.

This commit merely represents a start and is made to better track
the progress of changes.
2021-10-24 22:36:38 +02:00