Skip to content

Minimal end-to-end interpreter. #37

Description

@emdevv

Everything should be primitive — no error handling, no validation, just enough to prove the pipe works.

  • Create include/script/lexer.h and src/script/lexer.cpp with tokenize_line() .
  • Create include/script/parser.h and src/script/parser.cpp with the Command struct and parse_line() .
  • include/script/interpreter.h + src/script/interpreter.cppload_script() + run_script() that handles exactly load and show, nothing else.

At the end we should have a example/test.em which contains the examples file for the interpreter they should look like this:
load img/pic.png show

How will run:

image-engine examples/test.em

The extension check fires, run_script is called, the script is parsed, the pic loads, the SFML window opens. The old CLI should still works exactly as before:

image-engine img/cat.png --gpu blur 50

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions