Skip to the content.

Basic Usage

Skip to Content

Table of Contents

Support

The language currently supports

IO

Three instruction are available to handle IO

Mathematics

The entire list of instructions available and supported by the language is available in the wiki.

The majority of these instructions supports indifferently integers and floats (the two type are named numbers). However, the result will be displayed as a float if you supply at least one argument as a float, even if it could be an integer, as seen here

float

You should pass the answer through the floor function if you need an integer

floor

Boolean algebra

Booleans

The language supports

Array Manipulations

The language supports basic array manipulations, the whole list is once again available on this page of the wiki

The separator between arguments is either a blank if you’re using the default lexer or a comma with the new lexer, the default lexer reads and ignore the comma.

You can

display

String Manipulations

The language implements natively a string module implementing some useful functions, the translation is available on the string page of the wiki

Example: d

Conversion from string

You can convert string to integers/floats/booleans, for example:

CARROTCAKE CHOUQUETTE PARISBREST 12 PARISBREST CLAFOUTIS

converts a string to an integer ifs

while

GALETTEDESROIS CHOUQUETTE PARISBREST 12.2 PARISBREST CLAFOUTIS 

converts a string to a floating point numbers dfs

and

FRANGIPANE CHOUQUETTE PARISBREST true PARISBREST CLAFOUTIS

bfs

An EXCEPTION is raised if you supply a parameter which is not convertable.

ifserror

Conversion to string

The conversion to string is the same instruction for every type, it is FROSTING

FROSTING CHOUQUETTE 10000 CLAFOUTIS

str

Variables

Baguette# do not have a real system of scopes and variables, all registered pseudo-variable with the QUATREQUART instruction are readable with the MADELEINE instruction everywhere in the program.

It allows developing function-like labels which can uses and manipulates the pseudo-variables defined in the program, in the label.

To learn more about variable, labels and gotos usage see the advanced usage page !