Torsten Ruger
|
cf87c5323d
|
using the next field of blocks for a consecutive code line
|
2014-05-22 13:59:47 +03:00 |
|
Torsten Ruger
|
e3bccaa0fe
|
thats putstring working again (better testing == better code => better sleep, longer life :-)
|
2014-05-21 21:27:05 +03:00 |
|
Torsten Ruger
|
587fd56300
|
remove a layer of indirection
|
2014-05-21 21:15:23 +03:00 |
|
Torsten Ruger
|
bc278a61eb
|
using function args for call
|
2014-05-21 21:12:46 +03:00 |
|
Torsten Ruger
|
46102e56ad
|
rename c to register machine
|
2014-05-21 19:43:46 +03:00 |
|
Torsten Ruger
|
937f566b27
|
value is not derived from code (was too much generalisation/confusing)
|
2014-05-21 19:41:51 +03:00 |
|
Torsten Ruger
|
067cde8d43
|
remove remnant of old dsl
|
2014-05-21 19:34:58 +03:00 |
|
Torsten Ruger
|
c36a08d52d
|
small fixes
|
2014-05-21 19:33:58 +03:00 |
|
Torsten Ruger
|
847a486288
|
fix from assign
|
2014-05-21 19:06:06 +03:00 |
|
Torsten Ruger
|
2df2dcc528
|
function now returns locals, not free registers
|
2014-05-21 16:42:36 +03:00 |
|
Torsten Ruger
|
e1f889fd10
|
fix fibo with new syntax. certainly works for operators, but not everything
|
2014-05-21 12:47:40 +03:00 |
|
Torsten Ruger
|
16a07d5aa2
|
fixed method_missing to check whether local var exists (not gobble everything up)
|
2014-05-21 12:44:36 +03:00 |
|
Torsten Ruger
|
53cfeb72a4
|
fix test and remove hack for -
|
2014-05-21 12:42:54 +03:00 |
|
Torsten Ruger
|
9d873d3cba
|
implement string loading and convert hello test
|
2014-05-20 19:21:29 +03:00 |
|
Torsten Ruger
|
c7a2ce5af9
|
phase 2, add/sub instructions work with +- operator
|
2014-05-20 11:54:59 +03:00 |
|
Torsten Ruger
|
c3c6928dc8
|
phase one, assignment for constants (moves) work
|
2014-05-20 11:14:18 +03:00 |
|
Torsten Ruger
|
7056f6f05c
|
first step of assignment magic
|
2014-05-20 11:03:18 +03:00 |
|
Torsten Ruger
|
fcf76eed34
|
better testing for small assembly (for coming changes)
|
2014-05-20 10:29:08 +03:00 |
|
Torsten Ruger
|
285988f173
|
putint works, work on syntax goes on
|
2014-05-19 15:44:12 +03:00 |
|
Torsten Ruger
|
76ce9aa654
|
improve argument handling for puntint
|
2014-05-19 12:18:01 +03:00 |
|
Torsten Ruger
|
59952f8503
|
more work on instruction format
|
2014-05-19 11:28:13 +03:00 |
|
Torsten Ruger
|
76f1537174
|
fix some arguemnt names
|
2014-05-18 12:34:53 +03:00 |
|
Torsten Ruger
|
9fc8bfbb55
|
fixin up mov arguments
|
2014-05-18 12:30:49 +03:00 |
|
Torsten Ruger
|
2be96dccdc
|
fix logic instruction arguments
|
2014-05-18 12:18:57 +03:00 |
|
Torsten Ruger
|
6abd10f278
|
started naming instruction arguments properly, starting with compare
|
2014-05-18 11:11:26 +03:00 |
|
Torsten Ruger
|
f65ad813af
|
move first arg into derived intruction constructor
|
2014-05-18 10:27:35 +03:00 |
|
Torsten Ruger
|
7b1b2c5d87
|
aliased add_code to <<, to give a bit of the stream feel
|
2014-05-18 10:15:43 +03:00 |
|
Torsten Ruger
|
7e2210f772
|
renaming update_status_flag to just update_status
|
2014-05-16 19:56:13 +03:00 |
|
Torsten Ruger
|
ef17bbf9dd
|
rename left to first in instruction and started on logic instruction cleanup
|
2014-05-16 10:42:25 +03:00 |
|
Torsten Ruger
|
a0f0d08e81
|
named the first intruction constructor argument
|
2014-05-15 19:41:51 +03:00 |
|
Torsten Ruger
|
b4c79d218f
|
work on Integer.to_s , not a simple task as it turns out
|
2014-05-15 16:54:23 +03:00 |
|
Torsten Ruger
|
3912e0cd31
|
fix register issues, some typos
|
2014-05-14 22:04:03 +03:00 |
|
Torsten Ruger
|
e10f4863ee
|
exporting labels to elf for (a lot) better readability
|
2014-05-14 16:15:47 +03:00 |
|
Torsten Ruger
|
d6b5d46165
|
while compiles. jo
|
2014-05-14 12:02:54 +03:00 |
|
Torsten Ruger
|
d50c38f5ad
|
add more functionality to get while to work (not there yet)
|
2014-05-14 11:33:23 +03:00 |
|
Torsten Ruger
|
2230a4f25e
|
clean up intruction instantiation and fix tests
|
2014-05-14 10:47:30 +03:00 |
|
Torsten Ruger
|
46ea1df51e
|
rename function_call to call_site in all levels to avoid confusion
|
2014-05-13 21:15:02 +03:00 |
|
Torsten Ruger
|
04af367bc0
|
coming together, more and more each day
|
2014-05-13 21:06:12 +03:00 |
|
Torsten Ruger
|
f6711ea49c
|
checkpointing on the mad road to register allocation
|
2014-05-13 18:21:24 +03:00 |
|
Torsten Ruger
|
b0302948dd
|
rename machine to c_machine
|
2014-05-13 17:06:42 +03:00 |
|
Torsten Ruger
|
d7f31e7f39
|
introduce constant class and add block to compile signature(wip, work in progress)
|
2014-05-13 16:24:19 +03:00 |
|
Torsten Ruger
|
e600911fe8
|
adds variable, something compliles , but...
|
2014-05-10 17:55:02 +03:00 |
|
Torsten Ruger
|
79a28ac5fa
|
trying to get function calls to work (but will have to rework regeister handling)
|
2014-05-10 15:24:56 +03:00 |
|
Torsten Ruger
|
b266bb84ba
|
splitting the parser up more
|
2014-05-10 11:14:34 +03:00 |
|
Torsten Ruger
|
af1df1a104
|
renamed root parser class to Crystal
|
2014-05-10 11:03:23 +03:00 |
|
Torsten Ruger
|
31aa9c8768
|
actually ads a value to Value
|
2014-05-10 10:59:56 +03:00 |
|
Torsten Ruger
|
9c609ee299
|
make machine init default to the running one with ruby config
|
2014-05-08 19:30:46 +03:00 |
|
Torsten Ruger
|
f7f0eee31a
|
adjust program tests to new syntax, hello world works there too -)
|
2014-05-08 14:14:15 +03:00 |
|
Torsten Ruger
|
4135c4d2dc
|
crystal says Hello.
|
2014-05-06 21:36:28 +03:00 |
|
Torsten Ruger
|
fa123e0354
|
move kernel to core and apply the classmethod pattern to all core classes
|
2014-05-06 12:47:07 +03:00 |
|
Torsten Ruger
|
12b6800efe
|
work on function entry and exit. fix stack instructions
|
2014-05-06 12:42:43 +03:00 |
|
Torsten Ruger
|
22b5117c8b
|
getting a _start and _exit, just missing the actual code
|
2014-05-06 00:12:04 +03:00 |
|
Torsten Ruger
|
7d20b5e2df
|
at least its in shape to start debugging again (that must count as half full)
|
2014-05-05 22:21:11 +03:00 |
|
Torsten Ruger
|
69b04d930f
|
cleanup
|
2014-05-05 15:59:29 +03:00 |
|
Torsten Ruger
|
de66238a9e
|
moved all compile to ast, vm does link and assemble. Getting there
|
2014-05-05 11:03:43 +03:00 |
|
Torsten Ruger
|
99da6f5be3
|
gets rid of conversion approach, ast compiles
|
2014-05-05 10:13:49 +03:00 |
|
Torsten Ruger
|
7c7e58ea62
|
upgrades ast to first class
|
2014-05-05 09:51:16 +03:00 |
|
Torsten Ruger
|
7c0aa8ae7d
|
getting better, but somethings off
|
2014-05-05 09:35:40 +03:00 |
|
Torsten Ruger
|
a61170942f
|
so close i can smell it, checkpoint
|
2014-05-03 22:18:04 +03:00 |
|
Torsten Ruger
|
04e4dc872e
|
check
|
2014-05-03 18:51:47 +03:00 |
|
Torsten Ruger
|
845a8cab8b
|
more semi random code, a checkpoint
|
2014-05-03 15:13:44 +03:00 |
|
Torsten Ruger
|
1c86ecb84e
|
copied asm here so that stays working while i break (an) arm
|
2014-05-03 15:13:15 +03:00 |
|
Torsten Ruger
|
990b4726ba
|
more random code
|
2014-05-02 08:02:25 +03:00 |
|
Torsten Ruger
|
874f080ba2
|
Semi random code for the next step
|
2014-04-28 22:08:09 +03:00 |
|
Torsten Ruger
|
92a9372dcc
|
moved nodes to parser (one more layer) and fixed tests. also adds assignment
|
2014-04-28 21:21:12 +03:00 |
|
Torsten Ruger
|
cfcb9ded2f
|
fixed and tightened transformation tests, also by implementing node ==
|
2014-04-28 16:07:34 +03:00 |
|
Torsten Ruger
|
408cf98ea5
|
renamed parser rules for clarity. fixed
|
2014-04-27 21:12:42 +03:00 |
|
Torsten Ruger
|
28410ab22a
|
adjusted code and tests to use renamed and rearranged parser bits
|
2014-04-27 18:13:34 +03:00 |
|
Torsten Ruger
|
436a5dac5a
|
created own directory for parser
|
2014-04-27 15:38:07 +03:00 |
|
Torsten Ruger
|
f1a7993b47
|
bit of renaming , cleaning and documentation
|
2014-04-25 13:29:12 +03:00 |
|
Torsten Ruger
|
3f316cda63
|
fixed root
|
2014-04-24 21:02:27 +03:00 |
|
Torsten Ruger
|
f39eef38a1
|
complier was deemed redundant, as the java stuff
|
2014-04-24 21:02:00 +03:00 |
|
Torsten Ruger
|
2b1a56b4fe
|
starting with own node tests
|
2014-04-24 19:45:22 +03:00 |
|
Torsten Ruger
|
c411ac5df8
|
removed the structs (code smell)
|
2014-04-24 17:38:06 +03:00 |
|
Torsten Ruger
|
305f2380a9
|
folded fake builder, started adapting tests and added example file
|
2014-04-24 17:17:17 +03:00 |
|
Torsten Ruger
|
601dc22b2e
|
get thnads tests to work
|
2014-04-24 15:53:48 +03:00 |
|
Torsten Ruger
|
d90ea3dd26
|
copied thnad to get a kickstart
|
2014-04-24 15:43:20 +03:00 |
|