Glich - v0.3.0 Manual
set Extensions
Home Development v0.3.0 Manual Hics Extension set Extensions

Statement: set - Hics Extensions

The set statement is part of the Glich language. The Hics extension adds new properties and values to the statement.

FormatExample
set property value; set context hics;

The following properties can be changed with the set statement.

Hics Property extension
PropertyUse
contextSet the output text of certain values.
inputSet the default calendar scheme input.
outputSet the default calendar scheme output.
inoutSet the default calendar scheme for both input and output.

Setting Property: context

The context property changes some defaults values to suit different contexts. There are currently two possible values: glich, the default and hics for use with the hics extensions.

Format
set context glich; // Default without Hics library.
set context hics; // Default with Hics library.

The settings make the following changes to the input and output.

glichhics
Field maximum output:"+infinity""future"
Field minimum output:"-infinity""past"

Setting Properties: input, output and inout

The system maintains two setting, input and output which can be set directly with the input and output properties. The inout property will set set both input and output settings at the same time.

The settings are in the form of a scheme:format signature. They control the action of the @date, @text and @scheme conversion functions.

Format
set inout g:dmy; // Default for Hics library.
set input j:dmy;
set output h:dmy;

Whenever one of the conversion functions is used without a qualifier, then either the input or output will be used, as shown in the table.

FunctionDefault ModifierResult Value
@date(text_value)input settingset_type
@date(scheme_object)qualifier not requiredset_type
@text(set_type)output settingstring_type
@text(scheme_object)qualifier not requiredstring_type
@scheme(set_type)output settingscheme_object
@scheme(text_value)input settingscheme_object
Home Development v0.3.0 Manual Hics Extension set Extensions

Managed by WebPageLayout Validated by HTML Validator (based on Tidy)

20th June 2023