comparison src/defs.s @ 121:5d5472b11ccd

Initital skeleton of separation of separate parsing scheme This is the first commit in a long series related to separating the parsing of the input code from the execution of the code. It should allow for more efficient, and probably simpler, execution while giving quicker feedback when someone types in syntactically invalid code.
author William Astle <lost@l-w.ca>
date Sun, 31 Dec 2023 17:44:39 -0700
parents 6db72a92ff7a
children 917b4893bb3d
comparison
equal deleted inserted replaced
120:1c1a0150fdda 121:5d5472b11ccd
10 keyb_alt equ 0x04 ; alt pressed 10 keyb_alt equ 0x04 ; alt pressed
11 keyb_ctrl equ 0x02 ; ctrl pressed 11 keyb_ctrl equ 0x02 ; ctrl pressed
12 keyb_shift equ 0x01 ; shift pressed 12 keyb_shift equ 0x01 ; shift pressed
13 linebuffsize equ 0x100 ; the line input buffer (256 bytes) 13 linebuffsize equ 0x100 ; the line input buffer (256 bytes)
14 stringstacknum equ 20 ; number of entries on the anonymous string descriptor stack 14 stringstacknum equ 20 ; number of entries on the anonymous string descriptor stack
15 stackheadroom equ 50 ; required headroom for the stack on OM checks
15 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 16 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16 ; Data structure used for calculations. Calculations are handled via structures called value accumulators. A value 17 ; Data structure used for calculations. Calculations are handled via structures called value accumulators. A value
17 ; accumulator consists of a data type flag (at the end of the structure) and a data area whose layout varies based 18 ; accumulator consists of a data type flag (at the end of the structure) and a data area whose layout varies based
18 ; on the actual data type. The layouts for each value type are described below. 19 ; on the actual data type. The layouts for each value type are described below.
19 ; 20 ;