Ed_ 9b19fb69c9 progress
will be removing str8cache from the v0 and moving that to a another version.

I want to maybe test using llms to remove code defs for this exercise.
2025-05-31 15:33:00 -04:00
2025-05-31 15:33:00 -04:00
2025-05-31 15:33:00 -04:00
2025-05-26 22:20:55 -04:00
2025-05-26 22:14:21 -04:00
2025-05-27 01:12:00 -04:00

WATL Exercise

An exercise on making the simplest useful parser with different languages or conventions.

The C code conveys a convention for doing C I've synthesized after studying how several people in the "handmade" community have written their exposed libraries or codebases.

The goal of the exercise is always the following:

start:
    file_contents := file.read_contents(self.source)
    tokens        := watl.lex(file_contents)
    str_cache     := str.cache.init()
    lines         := watl.parse(tokens)
    listing       := watl.dump_listing(lines)
    file.write_str(str.fmt("<name>.listing.source", self.source.name))
end
Description
An exercise on making the simplest useful parser with different languages or conventions.
Readme 5.1 MiB
Languages
C 92.9%
Odin 6.1%
PowerShell 1%