Clervinator
A modern playground for the LEXOR language. Write, run, and explore programs instantly.
LEXOR is a strongly-typed teaching language designed for Senior High School students. Every program starts in a dedicated script block and uses a small, focused set of statements.
- All programs begin with
SCRIPT AREA - Code lives between
START SCRIPTandEND SCRIPT - Run with the green button to see output below
LEXOR focuses on readable, beginner-friendly constructs with a fixed program layout.
- Variable declarations come immediately after
START SCRIPT DECLARE INT x, y, z = 5,DECLARE CHAR a_1 = 'n',DECLARE BOOL t = "TRUE"- Each line contains exactly one statement; reserved words are in ALL CAPS
- Comments start with
%%and can appear anywhere $creates a new line,&concatenates,[]is used as an escape code
Supported data types: INT, CHAR, BOOL, and FLOAT. Control flow includes
IF / ELSE IF / ELSE blocks and loop structures such as FOR and REPEAT WHEN.
Explore operators, input/output, and full control-flow rules as defined in the official language specification.
- Project repository
- Arithmetic and comparison operators:
+, -, *, /, %,>, <, >=, <=, ==, <> - Logical operators:
AND,OR,NOT - Input/output:
PRINT:for formatted output andSCAN:for reading values