Commit Graph

5 Commits

Author SHA1 Message Date
Lephe ab057abddd
add the wait command 2019-10-05 11:55:06 +02:00
Lephe a983faedeb
add relations, and most functions
This change adds a [cond] grammar symbol corresponding to binary
relations in IF, IFELSE and WHILE conditions. It also adds support for
unary functions with parenthesis syntax. Other functions will need
specific rules depending on their operator precedence level.

Also adds the Window.save() function that implements the --save option
to save the output of the program into a bitmap file. This will be used
to perform automated unit tests.
2019-10-04 12:44:27 +02:00
Lephe 3d8dcdd989
add command-line options and a text lexer
This change lays the ground for automated unit tests. It adds
command-line options to select the input language format between URL
(hexa text) and plain text, change a few output settings, and redirect
graphical output to an image.

A text lexer has also been added so that unit tests and new programs can
be written in an English-like syntax instead of raw hexadecimal.
2019-10-02 07:18:29 +02:00
Lephe eaaee18bc7
use the proprer line rendering algorithm
The proper Bresenham setup used by the fx-92 SC+.
2019-10-01 18:06:05 +02:00
Lephe 8269ab3f19
add SDL2 rendering with a simple test 2019-10-01 13:40:52 +02:00