Commit Graph

50 Commits

Author SHA1 Message Date
c92814440f fix integer to_s and put, with tests 2015-11-10 19:09:17 +02:00
760a4beb86 fix some word with tests 2015-11-10 19:08:48 +02:00
a730dd0c99 fix some, return missing
must write no return error code
2015-11-09 23:29:35 +02:00
70f912f94c allow message as keyword to access current message
the ultimate in meta-programming
2015-11-09 23:29:14 +02:00
368263d5a5 rewrite of field access using on_name
much cleaner and revealed a bug
2015-11-09 23:26:37 +02:00
b2de1c6d79 minor fixes 2015-11-08 23:58:54 +02:00
f746218765 reinstate word creation and use for strings
so string constants become words, so we can fiddle with them
2015-11-08 23:58:35 +02:00
6b9c472bec refactor load_parfait
so debugger can grab and wire it easily
2015-11-08 18:35:10 +02:00
6f69995284 stab at inter to string
wip
2015-11-08 17:11:03 +02:00
6ea698d397 save some to_s code 2015-11-08 14:30:42 +02:00
37564d9c2e implement message pseudo variable (like self)
too easy
also simplified some tests
2015-11-08 13:55:38 +02:00
69918c8e88 add some message and remove fields
those fields are already present in the classes
(in the future they should be defined in some and integrated to ruby,
but that would mean parsing to boot and parsing doesn’t yet work on
opal)
2015-11-08 13:54:58 +02:00
502cfa357d implement and test field access 2015-11-08 13:39:13 +02:00
b443103ea4 using class fields
instead of internal_get
2015-11-08 01:02:47 +02:00
9fd7c79cfb mixed up class and meta, fixed 2015-11-08 00:55:10 +02:00
bcc366f8fd bit more soml 2015-11-08 00:54:47 +02:00
5ddc96718b slight call logic modification
simplification, new model is such that the upon start the method:
has a message in r0, works on it and returns to the return address.

Everything else is up to the caller
2015-11-07 21:59:39 +02:00
2315ad6920 minor cleaning 2015-11-07 21:55:04 +02:00
8c68ffc7a4 fixing indexes makes test work
forgot my own rule: all parfait works in 1 based lists
2015-11-07 20:10:55 +02:00
a1aa6b58ac resolve methods, don't just get them
i.e. down the ladder we go
2015-11-07 19:39:15 +02:00
7523bac80a add layout and class accessor and test 2015-11-07 19:38:52 +02:00
50b03a5e94 load parfait soml files
No dir glob for precise order
2015-11-07 17:38:27 +02:00
9ebe28450b add global variable space
could in the long run move spaces functionality to the class
and since the class is global anyway, wouldn’t need this
2015-11-07 12:19:04 +02:00
fd7e4afb2f small meta related changes 2015-11-07 00:14:10 +02:00
4014ad27fe fix and test return
return was in the wrong message
better tests now
2015-11-05 12:22:48 +02:00
642dcb065a fix while statement
logic was broken, or inversed
had to lay the code out a bit funny, but it works and makes sense
2015-11-04 20:23:26 +02:00
c940e25f91 other half of previous call change 2015-11-03 11:22:52 +02:00
cffbc91821 fix field_def to new syntax 2015-11-02 21:27:37 +02:00
45bd4bfdc6 remove save return 2015-11-02 20:11:12 +02:00
86b0030f15 refactor on_call 2015-11-02 17:32:21 +02:00
834266e11e improve label names a bit 2015-11-01 19:13:40 +02:00
d3a7809746 use . to mark methods 2015-10-30 00:01:28 +02:00
7e24f63327 polish sources 2015-10-29 22:31:28 +02:00
7d7b7ca995 adding types to layout
so we can test assignment
2015-10-29 12:45:29 +02:00
e4201143b3 last fixes from source change 2015-10-28 21:40:48 +02:00
e6743c7216 (string) source knockoffs 2015-10-28 21:39:59 +02:00
99a695907c move method_source functionality into compiler
the source was there long before the compiler (sis language) came along
and was basically doing the same
Much clearer concept with using compiler to generate methods and code
Also move compile method to method
2015-10-28 21:36:41 +02:00
72b790c107 remove method source receiver
no harm done it seems
2015-10-28 14:24:14 +02:00
e75517ff05 move constants to machine 2015-10-28 13:00:23 +02:00
7e0778dc70 remove return_type
soon to be obsolete with multi returns
2015-10-28 12:19:10 +02:00
142c36a374 fix return statement to actually return
fix a million tests
2015-10-27 21:04:46 +02:00
bb908dcf76 adding arg length to call sequence
and fix all the tests that affects
2015-10-27 16:21:11 +02:00
bd171d091a fix tests for indexed messages and frames
index_length changes index a bit
but from now on changes to layouts should push the index automatically
just have to set the index while calling now
2015-10-27 16:05:50 +02:00
638c367e00 more class methods 2015-10-26 22:23:06 +02:00
5b7c98f50b order requires 2015-10-26 22:22:38 +02:00
9d0b264b79 minors 2015-10-26 17:23:35 +02:00
b76c140d32 some class field tests 2015-10-26 13:08:40 +02:00
b7d0ee8f99 wit metaclass and class functions
needs to go back to arrays first
2015-10-25 15:40:12 +02:00
57f37ec023 removed blocks and moved to labels
somewhat easier to understand the code as a linked list
relatively painless change, considering
2015-10-23 21:27:36 +03:00
e0c5bc4c11 rename phisol to soml 2015-10-23 14:22:55 +03:00