Go to file
2018-04-07 15:09:02 +00:00
ac exported hcl_seterrbfmtv(), hcl_seterrufmtv() 2018-03-14 14:40:05 +00:00
lib set salit.size to 0 forcibly in get_symbol_array_literal() 2018-04-07 15:09:02 +00:00
m4 exported hcl_seterrbfmtv(), hcl_seterrufmtv() 2018-03-14 14:40:05 +00:00
mod exposed hcl_addbuiltinprims(). 2018-03-19 09:22:12 +00:00
aclocal.m4 exported hcl_seterrbfmtv(), hcl_seterrufmtv() 2018-03-14 14:40:05 +00:00
configure changed the server code to support multiple listening addresses 2018-03-22 09:46:44 +00:00
configure.ac changed the server code to support multiple listening addresses 2018-03-22 09:46:44 +00:00
Makefile.am added some builtin modules, but without many functions in them 2018-02-15 15:36:15 +00:00
Makefile.in exposed hcl_addbuiltinprims(). 2018-03-19 09:22:12 +00:00
README.md set salit.size to 0 forcibly in get_symbol_array_literal() 2018-04-07 15:09:02 +00:00

HCL - Hybrid Command Language

Language Syntax

A HCL program is composed of more expressions.

Keywords

  • nil
  • true
  • false

Special Form Expression

  • and
  • break
  • defun
  • do
  • elif
  • else
  • if
  • lambda
  • or
  • return
  • set
  • until
  • while

literals

  • integer
  • character
  • small pointer
  • error
  • string
  • dictionary
  • array
  • byte array

Builtin functions

  • not
  • _and
  • _or
  • eqv?
  • eql?
  • eqk?
  • nqv?
  • nql?
  • nqk?
  • sprintf
  • printf
  • +
  • -
  • *
  • mlt
  • /
  • quo
  • mod
  • sqrt
  • bit-and
  • bit-or
  • bit-xor
  • bit-not
  • bit-shift

Defining a function

(defun function-name (arguments) | local variables | function body )

(set function-name (lambda (arguments) | local variables | function body )