language

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit d5e4e2a9f745499c044d16fde841cfaa9cff74d9
parent 656934b6315834177fdb8e0bfee7d022af19cd32
Author: Paul Longtine <paullongtine@gmail.com>
Date:   Wed Oct  7 10:52:10 2015

outlining VM bytecode

Diffstat:
 .gitignore        |  1 +
 doc/OVERVIEW      |  2 +-
 doc/SPECIFICATION | 18 +++++++++++++++++-
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +.*.swp diff --git a/doc/OVERVIEW b/doc/OVERVIEW @@ -50,7 +50,7 @@ will provide the basic functions of programming languages. PLAN When do I expect this to be done? What parts will be done when? - + I plan on 'finishing' this project at the end of the year (by May 2016) +-----------------+-----------------------------------+------+ diff --git a/doc/SPECIFICATION b/doc/SPECIFICATION @@ -20,8 +20,24 @@ are deemed inferior. * boolean Will be elaborated on as thoughts progress. -STACK MACHINE +RUNTIME + The runtime will execute bytecode produced by the parser of a given +Keywords: + TOS - 'Top Of Stack' The top element +------------------------------------------------------------------------------- +Stack manipulation +------------------------------------------------------------------------------- + ROT - rotates top of stack + ROT_THREE - rotates top three elements of stack + DUP - duplicates the top of the stack +------------------------------------------------------------------------------- +Variable management +------------------------------------------------------------------------------- + DEC <type> <ref> - declare variable of type + LOV <ref> - loads reference variable on to stack + STV <ref> - stores TOS to reference variable + LOC <ref> - loads constant LEXICAL ANALYSIS