fantalleFlags
fantalleFlags is a somewhat esoteric language created by User:Cocosbeans in 2024. The language serves as the implementation of logic for cocosbeans' Fantalle project, a text-adventure game implemented similar to Zork I.
Etymology
The name fantalleFlags comes from the fact that at the beginning of its implementation, fantalleFlags was intended to be a group of specific, non-Turing complete strings called "flags" that served as data for some objects in Fantalle. However, these strings are now known as "logic".
Syntax
fantalleFlags' code is implemented with a custom C++ library, "game_objects.hpp"
, within the Fantalle project. These strings are grouped in a vector and later accessed and interpreted as logic. Initially, this vector is created when a new object is initialized, like so:
#include <string> #include <vector> #include "game_objects.hpp" Item ExampleItem("Example item name", "Example item description", std::vector<std::string> {"Example item flag vector"});
The syntax of fantalleFlags is inspired by ZIL and Batch, with the former giving way to the full uppercase aspect, and the latter inspiring the sequential reading that the interpreter does.
{ // Example of some logic (snippet truncated) "$ EARLY VALF COUNTER 0", "$ LATER INTERACT 2", "$ JUMPR IFELSEGREATER COUNTER 10 4 5", "$ JUMPR VALF COUNTER 0", "$ JUMPR MATH ADD COUNTER 1" };
This page is a WORK IN PROGRESS. As fantalleFlags implementation extends, so will this page.