From 992c7b6009038b7b89295d9b487276aeee831b47 Mon Sep 17 00:00:00 2001 From: Teascade Date: Sun, 27 Aug 2017 21:41:40 +0000 Subject: [PATCH] Add print built-in function --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d253a9f..ecf02e9 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Table of contents for the Omega spec - [Values](#values) - [Special cases](#special-cases) - [Keywords](#keywords) +- [Built-in functions](#built-in-functions) ## Examples Before any of the following examples, a print-function has been defined in the global scope. The print-function takes in a String-type as a parameter. @@ -455,4 +456,10 @@ if (int_opt?) { - Before `as` there must be a variable, or a value, and after there must be the type which the value is attempted to be cast as. - If the rightside of the operator is not a type, a parseĀ§ time error occurs. -. + +## Built-in functions + +- [`print(text: string)`](#print-text-string) + +#### `print(text: string)` +Prints `text` to standard (stdout, to console by default). This is configurable by changing stdout in the Omega VM.