Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Rewrite with a lexer, parser, etc. #3

@skx

Description

@skx

At the moment bogus input will cause problems. We kinda assume things are well-formed, because we're very naive.

If we wanted to be robust we should implement a lexer/parser, and work on tokens. We could then add error-handling, proper test-cases, etc, etc.

  • This would make the code bigger.
  • It would allow us to support both C and Assembly language output though.

Not a huge priority, but I guess I could take a look at it in the near future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions