Chris Pressey
|
e44c802314
|
Syntax errors have line numbers in them now.
|
2018-03-06 12:23:57 +00:00 |
|
Chris Pressey
|
15fa4889e7
|
Add some more tests (failing currently).
|
2018-02-16 12:28:11 +00:00 |
|
Chris Pressey
|
0687da80d5
|
Some headway on context.assert_in_range().
|
2018-02-14 15:54:57 +00:00 |
|
Chris Pressey
|
93e2dada16
|
Check for table size (in parser, thus tests are for syntax.)
|
2018-02-14 13:53:22 +00:00 |
|
Chris Pressey
|
aa5b06980c
|
Add some initial failing tests.
|
2018-02-14 13:41:48 +00:00 |
|
Chris Pressey
|
55331e9c54
|
Statics are always writeable. Statics are always meaningful.
|
2018-02-09 13:35:59 +00:00 |
|
Chris Pressey
|
ca1c877a60
|
Support indirect refs in st, e.g. st a, [ptr] + y .
|
2018-02-09 11:23:18 +00:00 |
|
Chris Pressey
|
b20b664748
|
Implement the "union rule for trashes" when analyzing if blocks.
|
2018-02-08 14:04:51 +00:00 |
|
Chris Pressey
|
3f1f3bf16e
|
Set a location as touched when trashed with a trash instruction.
|
2018-02-08 13:43:06 +00:00 |
|
Chris Pressey
|
f4befb45d3
|
Add more tests, which show inconsistent treatment of trashes.
|
2018-02-08 13:34:03 +00:00 |
|
Chris Pressey
|
cde2824c44
|
Articulate the "union rule" for trashes in if, add failing tests.
|
2018-02-08 12:46:28 +00:00 |
|
Chris Pressey
|
f92e1f15bf
|
Tired: copy [ptr]+y, a. Wired: ld a, [ptr]+y.
|
2018-02-08 11:58:24 +00:00 |
|
Chris Pressey
|
34daad0e56
|
Make ld parse to a IndexedRef or IndirectRef (latter still todo.)
|
2018-02-08 11:04:11 +00:00 |
|
Chris Pressey
|
ed1ed3eb5d
|
Always analyze before compiling.
|
2018-02-06 16:14:44 +00:00 |
|
Chris Pressey
|
9778e083c1
|
Move test, add test, add assertion.
|
2018-02-06 11:52:50 +00:00 |
|
Chris Pressey
|
70ecd52e8a
|
Retain some syntax compatibility: make table a postfix operator.
|
2018-02-06 11:34:21 +00:00 |
|
Chris Pressey
|
612ae588f7
|
Add some tests, fix some bugs, show that one bug remains.
|
2018-02-06 10:05:56 +00:00 |
|
Chris Pressey
|
0be721667a
|
Kind-of not-pretty syntax refactor to support adding typedefs.
|
2018-02-05 17:01:25 +00:00 |
|
Chris Pressey
|
20c824743e
|
Fix table access bug where index wasn't required to be initialized.
|
2018-02-05 12:35:19 +00:00 |
|
Chris Pressey
|
7dfd2cfe0c
|
Allow copying a routine directly into a vector table.
|
2018-02-05 12:04:28 +00:00 |
|
Chris Pressey
|
bbd3a84c00
|
Retain silly 'name inside the type' syntax (a la C) for now.
|
2018-02-05 11:18:35 +00:00 |
|
Chris Pressey
|
a082aee001
|
NOt 100% sure it's correct, but it seems close.
|
2018-02-02 17:56:50 +00:00 |
|
Chris Pressey
|
0fff8e4f0a
|
Begin to implement vector tables, stuck at a type equality problem.
|
2018-02-02 17:45:07 +00:00 |
|
Chris Pressey
|
b29716fccf
|
Constraints for vector come immediately after the type expression.
|
2018-02-02 17:16:31 +00:00 |
|
Chris Pressey
|
548905dce4
|
Initialized byte tables need not have all 256 bytes initialized.
|
2018-02-02 16:31:23 +00:00 |
|
Chris Pressey
|
c7861d375c
|
trash indicates a value is no longer considered meaningful.
|
2017-12-13 15:23:06 +00:00 |
|
Chris Pressey
|
5f535c963e
|
Subtract word (constant or memory location) from word memory location.
|
2017-12-13 14:07:59 +00:00 |
|
Chris Pressey
|
50390b0787
|
Can copy a literal word to a word table.
|
2017-12-12 16:04:59 +00:00 |
|
Chris Pressey
|
63f75a26b4
|
Initialized word type memory locations.
|
2017-12-12 15:34:51 +00:00 |
|
Chris Pressey
|
4854077cce
|
Correctly analyze repeat { ... } forever loops.
|
2017-12-12 15:18:59 +00:00 |
|
Chris Pressey
|
3417fd96c7
|
Apparently this hack was only needed previously due to a bug?
|
2017-12-12 14:55:57 +00:00 |
|
Chris Pressey
|
8dc44673fa
|
LocationRefs are equal if names/type are; this needed __str__ tho.
|
2017-12-12 12:45:47 +00:00 |
|
Chris Pressey
|
b3d2d0bfcf
|
Clearing up a little mystery I had here.
|
2017-12-12 10:10:58 +00:00 |
|
Chris Pressey
|
689ed37f2e
|
Beginnings of implementing word tables. One test still fails.
|
2017-12-08 13:41:48 +00:00 |
|
Chris Pressey
|
75cf18d3a2
|
Add word (constant or memory loc) to pointer (unchecked for now).
|
2017-12-07 14:14:43 +00:00 |
|
Chris Pressey
|
a4fd0e590b
|
Adding a word memory location to another word memory location.
|
2017-12-07 13:15:21 +00:00 |
|
Chris Pressey
|
cf679b293a
|
Ability to --debug analysis. Make 16-bit addition test pass.
|
2017-12-07 11:49:15 +00:00 |
|
Chris Pressey
|
97d00637d2
|
Initial work on adding 16-bit constants to a 16-bit location.
|
2017-12-07 11:31:46 +00:00 |
|
Chris Pressey
|
6afbf581f7
|
Deal with the inputs/outputs of buffers, in a weak way.
|
2017-12-01 15:10:16 +00:00 |
|
Chris Pressey
|
d84566a880
|
Write stored values, and read values, through pointers.
|
2017-12-01 13:52:56 +00:00 |
|
Chris Pressey
|
32389e4422
|
Require that the program does ^buf to get at the address of buf.
|
2017-12-01 12:36:58 +00:00 |
|
Chris Pressey
|
c91574186b
|
First pass of buffer, pointer, copy b, [p] + y, indirect indexed.
|
2017-11-24 12:35:36 +00:00 |
|
Chris Pressey
|
c33e6ef0e9
|
Assert that the loop variable is meaningful in repeat. Unit test.
|
2017-11-20 16:39:39 +00:00 |
|
Chris Pressey
|
fc8c85e670
|
word types, with syntax and analysis thereof
|
2016-06-16 11:08:57 -05:00 |
|
Chris Pressey
|
b5763e84b4
|
Constants (such as routines) cannot be given in call-constraints.
|
2015-10-22 20:01:02 +01:00 |
|
Chris Pressey
|
cb2bda6afd
|
Fix my own confusion, and with it, the unit test.
|
2015-10-22 09:54:11 +01:00 |
|
Chris Pressey
|
0361016e4c
|
Bring the rest of the tests up to date with the new names.
|
2015-10-22 09:48:26 +01:00 |
|
Chris Pressey
|
cc433e9c64
|
Try to improve error messages, thus breaking many unit tests.
|
2015-10-21 19:43:44 +01:00 |
|
Chris Pressey
|
45310b8f9c
|
It's getting a little chaotic. Needs better error messages!
|
2015-10-21 17:05:49 +01:00 |
|
Chris Pressey
|
bb6ad5d3cf
|
Refactor Analyzer. Get analysis tests passing once again.
|
2015-10-21 15:45:14 +01:00 |
|