pcosmos.ca

le domaine de Philippe Choquette

Accueil Profil Contact Arrière plan
Half-Life
PCASTL
Operators
Data Types
Internal Functions
Tree Structure
Batch Execution
Examples
Interpreter Informatique
OpenGL
Grow
Elements
Lecture
C64 sids
Liens

PCASTL
by Parent and Childset Accessible Syntax Tree Language

Page en français

The PCASTL is an interpreted high level programming language which makes writing self-modifying code easier. Its features are:

  • The "parent" keyword to access a parent node in the code syntax tree.
  • The "childset" keyword to access a child node in the code syntax tree.
  • The use of explicit code segments delimited with ` and '.
  • Allows calls to dynamic-link libraries, shared object libraries or dynamic libraries.
  • Object, array and chained list data types. They are respectively created by internal functions names, array and list.
  • ANSI stdio.h interface for single-byte strings functions.
  • Turing complete.

The most recent version is 2.4 and was released on 2012-11-11.
List of changes.

So, what's a syntax tree?

For example, inside the interpreter, the tree having its root in the variable fact after the following code has been executed:

fact = function(x)
{
   if (x == 1) return(1)
   return(x * fact(x - 1))
}

is:

Syntax Tree