bool_m
BOOL Macro Compiler.
This file implements a BOOL/M compiler that reads source files and generates BOOL run-time objects.
classes:
BoolMacroParser (Properties)
BoolMacroBuilder (object)
Function (object)
BoolObject (object) - BOOL build object base class
BoolListObject (BoolObject) - List object
BoolMessageObject (BoolObject) - Message object
BoolInstanceObject (BoolObject) - Instance object
BoolReferenceObject (BoolObject) - Reference object
BoolActionObject (BoolObject) - Action object
BoolActorObject (BoolObject) - Actor object
BoolModelObject (BoolObject) - Model object
functions:
dump_action(action, log=Log)
dump_model(model, log=Log)
Developer@Sonnack.com
February 2014
type BoolActionObject
Bool Action Object class.
type BoolActorObject
Bool Actor Object class.
type BoolInstanceObject
Bool Instance Object class.
type BoolListObject
Bool List Object class.
type BoolMacroBuilder
Build BOOL Python (Level 3) from BOOLM macro language.
PARSER:
START - initialize all Builder objects
END - end of Builder code
NameSpace:
INSERT - create new entry, fail if exists
Action:
CREATE - begin a new Action
NAMETABLE - insert new name:address, fail if exists
INITLIST - insert new address, fail if exists
EXITLIST - insert new address, fail if exists
CLAUSE - create new clause entry, fail if exists
PARAM - bump clause parameters counter
EXECLIST - attach execute list to clause
EMIT - emit current Action object
Actor:
CREATE - begin new Actor object
PARAM - append to current Actor Clause
CLAUSE - start a new Actor Clause
EMIT - emit current Actor object
Label:
CREATE - create new Label object
List:
CREATE - begin new List object
GATE - set current List Gate Object
APPEND - append to current List object
EMIT - emit current List object
Message:
CREATE - begin new Message object
TARGET - set current Message Target
PARAM - append to current Message Params
EMIT - emit current Message object
Object:
CREATE - begin new Object object
INITLIST - set current Object Initlist
EMIT - emit current Object object
Reference:
CREATE - begin new Reference object
EMIT - emit current List object
type BoolMacroParser
Parser for BOOL-M (Hand-Compiled Macro) Source Code.
type BoolMessageObject
Bool Message Object class.
type BoolModelObject
Bool Model Object class.
type BoolObject
Bool Object base class.
type BoolReferenceObject
Bool Reference Object class.
type Function
.
function dump_action
Dump an Action tuple to the Log.
function dump_model
Dump an Model tuple to the Log.
function main
Package Main.