hyunghwan.chung
ea69bb8d45
changing how to emit code for square bracked block to solve goto related issues. work still in progress
2019-08-05 09:08:03 +00:00
hyunghwan.chung
55bf7e269e
trying to fix some goto implementation issues
2019-08-04 16:38:09 +00:00
hyunghwan.chung
490804d0aa
added a test case in test-003.moo
2019-08-02 16:19:24 +00:00
hyunghwan.chung
f3218dc90a
updated README.md
2019-08-02 16:12:12 +00:00
hyunghwan.chung
763d7f965e
renumbered some jump byte codes for easy conversion between forward jump and backward jump
2019-08-02 15:59:19 +00:00
hyunghwan.chung
c30f7466a5
attempting to adjust goto and label ips upon code elimination
2019-08-02 10:17:59 +00:00
hyunghwan.chung
e08edffb0c
renamed patch_long_forward_jump_instruction() to patch_forward_jump_instruction().
...
enhanced to change a forward jump to a backward jump if target ip is less than the instruction pointer
2019-08-02 09:32:19 +00:00
hyunghwan.chung
bd3fc07aaa
got rid of short jump instructions(jump offset encoded in the last 2 bits of the instruction)
...
added jump_backward_if_false/true instruction and the like
2019-08-02 09:23:08 +00:00
hyunghwan.chung
3b6e59d98c
more code to the compiler's goto handling functions
2019-08-01 16:05:04 +00:00
hyunghwan.chung
0fb20bfd40
writing a function to resolve jump labels for goto
2019-08-01 12:33:32 +00:00
hyunghwan.chung
5f4133e9fd
wrote a few more lines in add_label() in comp.c
2019-07-31 08:53:44 +00:00
hyunghwan.chung
090a3cd6f7
changed clear_method_data() to free goto and label information
2019-07-30 15:39:33 +00:00
hyunghwan.chung
24ada7f0be
updated README.md
2019-07-30 06:07:24 +00:00
hyunghwan.chung
5ef1c3b989
slightly more code for goto handling
2019-07-28 15:37:01 +00:00
hyunghwan.chung
299faf4a87
some code for goto handling
2019-07-26 07:40:58 +00:00
hyunghwan.chung
bd1d30360e
shortened elsif to elif.
...
enhanced is_reserved_word() to return a token type through a non-NULL second parameter
2019-07-26 04:40:33 +00:00
hyunghwan.chung
05837aef28
more goto-label handling code
2019-07-18 15:51:55 +00:00
hyunghwan.chung
6fddd95dce
removed an unused variable
2019-07-17 17:05:54 +00:00
hyunghwan.chung
d3f1a435cb
fixed a lexer bug than returned FPDECLIT where INTLIT was desired.
...
added more code to process jump labels
2019-07-17 17:04:27 +00:00
hyunghwan.chung
1c0b23fa97
started working on parsing labels
2019-07-17 09:52:26 +00:00
hyunghwan.chung
dbe3c1cc07
some wasm code
2019-07-15 15:25:00 +00:00
hyunghwan.chung
8e27a62a40
added the wasm directory for experiments
2019-07-15 09:36:03 +00:00
hyunghwan.chung
a1880f7198
updated README.md with some TODOs
2019-07-14 16:46:08 +00:00
hyunghwan.chung
7b4e179560
defined MOO_EXPORT to EMSCRIPTEN_KEEPALIVE for EMSCRIPTEN
2019-07-14 16:34:16 +00:00
hyunghwan.chung
0d5956547a
updated README.md a bit
2019-07-13 03:06:07 +00:00
hyunghwan.chung
1533c42dbf
removed code_start_loc from moo_method_data_t and added start_loc
2019-07-12 08:05:44 +00:00
hyunghwan.chung
3e506cbcfb
added System>>backtrace
2019-07-12 07:24:37 +00:00
hyunghwan.chung
18e186677e
simplified source line and source text representation of a methond in dbgi
2019-07-12 05:06:05 +00:00
hyunghwan.chung
8e5e5234cb
simplified source line and source text representation of a methond in dbgi
2019-07-12 03:38:45 +00:00
hyunghwan.chung
fcf6d3ffc1
touched up pf_method_get_source_file() and pf_method_get_ip_source_line()
2019-07-11 15:58:16 +00:00
hyunghwan.chung
d5475d79b6
added pf_method_get_ip_source_line() and defined CompiledMethod::ipSourceLine
2019-07-11 06:43:47 +00:00
hyunghwan.chung
4afe4b459d
renamed clear_io_names() to moo_clearcionames().
...
attempting to write a fucntion that gives a source line for an instruction pointer
2019-07-10 15:30:08 +00:00
hyunghwan.chung
b3eb804f87
reorganized moo_duputobcstr(), moo_dupbtoucstr(), moo_dupbtouchars(), moo_duputobchars().
...
renamed add_io_name() to moo_addcioname().
changed input_handler in std.c to set arg->name when opening a file with moo_addcioname().
shortened dbginfo to dbgi.
enhanced the compiler to record the class location in dbgi
2019-07-10 09:19:38 +00:00
hyunghwan.chung
b4c6e6a9de
added CompiledMethod>>sourceFile, CompiledMethod>>sourceLine.
...
added pf_method_get_source_file().
enhanced moo_addmethodtodbginfo().
enhanced the compiler to call moo_addfiletodbginfo(), moo_addmethodtodbginfo()
2019-07-09 15:56:34 +00:00
hyunghwan.chung
8820c3db16
changed dbginfo functions and structures a bit
2019-07-09 09:59:38 +00:00
hyunghwan.chung
e6d7cbd767
some more code to handle dbginfo
2019-07-08 15:41:57 +00:00
hyunghwan.chung
b88900eda2
writing some debug information tracking functions
2019-07-08 07:51:53 +00:00
hyunghwan.chung
fba3c3213c
attempting to store the source location information collected while compiling into the moo_dbginfo_t data structure
2019-07-07 15:24:27 +00:00
hyunghwan.chung
81a1785c35
changed the compiler to set source_file and source_line into moo_method_t
2019-07-06 09:44:29 +00:00
hyunghwan.chung
c334b0af28
added the code_start_loc field to moo_method_data_t and updated emit_byte_instruction()
...
to get distance of the instruction being emitted
2019-07-06 09:11:25 +00:00
hyunghwan.chung
70eaee601e
checking argument in pf_context_find_exception_handler()
2019-07-06 07:46:08 +00:00
hyunghwan.chung
7f835ea120
added moo_ischildclassof().
...
filled pf_context_find_exception_handler() to speed up exception handling a bit
2019-07-05 08:12:42 +00:00
hyunghwan.chung
3f6b0335d9
changed comp.c to pass source location to emit_XXX_instruction() functions
2019-07-04 10:04:59 +00:00
hyunghwan.chung
8e720e4bda
changed to pass source location to more calls to emit_xxx_instruction() functions
2019-07-03 15:06:54 +00:00
hyunghwan.chung
67c9c18282
made partial changes to pass source location to emit_XXX_instruction() functions
2019-07-03 08:48:02 +00:00
hyunghwan.chung
a9045a56b2
changed the moo_code_t structure a little
2019-07-02 09:48:56 +00:00
hyunghwan.chung
92093dd23f
added two more fields into CompiledMethod. no implementation change has been made yet
2019-06-29 10:46:28 +00:00
hyunghwan.chung
20b50c7bb6
defined select:,reject:,collect: in Array
2019-06-28 06:13:09 +00:00
hyunghwan.chung
2d8277a046
enhanced the compiler to process byte array in string notation - B"..."
2019-06-27 14:16:43 +00:00
hyunghwan.chung
4c7b5f2df8
removed the S'' literals from the moo codes
2019-06-27 08:06:33 +00:00