1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-06-01 12:41:30 +00:00
Commit Graph

43 Commits

Author SHA1 Message Date
Chris Pressey
5f8802b305 Arrange license info in repo to follow REUSE 3.0 convention. 2024-02-02 12:10:23 +00:00
Chris Pressey
8d6e5e090d The Type and Ref class hierarchies are now namedtuples. 2019-04-10 08:50:13 +01:00
Chris Pressey
a0328b8840 Store type information in SymbolTable shared across phases. 2019-04-10 08:48:33 +01:00
Chris Pressey
b19267d3ba Checkpoint import of changes for version 0.19. 2019-04-08 11:50:54 +01:00
Chris Pressey
07ef1e243a backpatch_constraint_labels can resolve ForwardReferences. 2018-09-07 14:51:16 +01:00
Chris Pressey
29a5bba85c Distinct symbol resolution phase (as a method on parser.) 2018-09-07 14:27:49 +01:00
Chris Pressey
3fd7e52bc7 Reduce number of errors under Python 3 another smidge. 2018-09-06 14:21:29 +01:00
Chris Pressey
c11869f322 Not making any promises, but reduce the errors under Python 3. 2018-09-05 21:45:58 +01:00
Chris Pressey
96fbe03ce7 Make compilation tests pass. 2018-03-14 16:27:33 +00:00
Chris Pressey
0e0a3d552a Implement Context.copy_range(), ranges for constants. Progress! 2018-02-14 16:35:19 +00:00
Chris Pressey
ab33331924 Associate a range with each meaningful storage location in context. 2018-02-14 13:31:03 +00:00
Chris Pressey
5fa8c69bd2 Don't fudge the name of IndexRefs; dig in to find the ref's name. 2018-02-13 17:17:27 +00:00
Chris Pressey
55331e9c54 Statics are always writeable. Statics are always meaningful. 2018-02-09 13:35:59 +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
44ee8efbef When backpatching constraints, don't strip ones we've already done. 2018-02-06 10:28:41 +00:00
Chris Pressey
c12a76e106 Make assertions more robust, in hopes of hunting down bugs. 2018-02-06 09:52:01 +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
7dfd2cfe0c Allow copying a routine directly into a vector table. 2018-02-05 12:04:28 +00:00
Chris Pressey
13e6654088 Executable types are compatible with other executable types. 2018-02-02 17:48:57 +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
4abedc0442 Centralize helper, use it elsewhere. 2018-02-02 17:05:15 +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
19dd089a03 Allow call and goto routines defined further down in the source. 2017-12-12 13:17:00 +00:00
Chris Pressey
45bc4bd0a0 Tighten assumption when comparing LocationRefs. 2017-12-12 12:54:16 +00:00
Chris Pressey
60df162625 Refactor: common method to backpatch labels. 2017-12-12 12:51:19 +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
bef1aba8ce Do not assume every label refers to a word-sized chunk of memory. 2017-12-11 10:42:42 +00:00
Chris Pressey
689ed37f2e Beginnings of implementing word tables. One test still fails. 2017-12-08 13:41:48 +00:00
Chris Pressey
92525fd482 Adding a constant word to a memory location. 2017-12-07 12:48: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
a95cbb0f47 Introduce IndirectRef and use it instead of adhoc 'copy[]+y' opcode. 2017-12-01 11:44:40 +00:00
Chris Pressey
42438dd97f Beginning of: buffers and pointers. 2017-11-24 11:30:20 +00:00
Chris Pressey
563aaeba47 Remove low/high byte operators until I've thought about it more. 2017-11-17 15:54:50 +00:00
Chris Pressey
9d6ca0b2b4 Low and high address operators, parsing and execution thereof. 2016-06-16 11:10:43 -05: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
2dc4dd988e Parse indirect calls, but break evaluator. 2015-10-20 09:33:30 +01:00
Chris Pressey
7d56705530 Check that the constraints on a routine match those of vector. 2015-10-19 19:17:27 +01:00
Chris Pressey
98524e931a Vector and routine types are constructors with constraints now. 2015-10-19 18:18:06 +01:00
Chris Pressey
c98e446583 Spec and syntax for vectors and copy instruction. 2015-10-18 19:41:26 +01:00
Chris Pressey
e1cf162a5b Refs have types. 2015-10-18 17:23:01 +01:00
Chris Pressey
ba55065060 Sketch the compiler. 2015-10-16 23:12:52 +01:00
Chris Pressey
dd4c50fc50 Refactor to replace some sketchy code with code actually in use.
--HG--
rename : src/sixtypical/objects.py => src/sixtypical/model.py
2015-10-16 10:40:38 +01:00