Butter Language Manual

Stepan Rutz

The copyright holders make no representation about the suitability of this document for any purpose. It is provided "as is" without expressed or implied warranty.


Table of Contents
Foreword
1. Install
Latest version and complaints
Package contents
Requirements
Requirements runtime
Requirements compiler
Compile and Install
2. Quickstart
Quickstart
The Butter quickstart
The classic "Hello world" example
3. Grammar and Syntax
Lexical conventions
How the sourcecode is parsed
Expressions
Literals and atomic symbols in expressions
Unary arithmetic operators
Binary arithmetic operators
The bitwise operators
The logical operators
The assignment operators
The sequence operator
Statements
Programs are lists of statements
More words on If/Else statements
Global variables, and the init/exit blocks
Functions
Defining and invoking functions
Recursion
Objects
Defining a structure
Constructor and destructor semantics
Member functions
Arrays
Limitations and warnings
Defining an array
4. Applications
bcompiler
Synopsis
Compiler invocation
bruntime
Synopsis
Runtime invocation
Glossary