Commit Graph

138 Commits

Author SHA1 Message Date
57d9668110 reader improvement to filter out binop from a tuple
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-15 01:02:07 +09:00
7754d7c7e9 enhanced the reader to perform sanity check on a tuple in advance 2024-07-13 17:40:27 +09:00
0d5907b726 minor change in test driver 2024-07-13 13:33:20 +09:00
8f87dbe008 changed the syntax of the class-level variable declacration to use square brackets
Some checks failed
continuous-integration/drone/push Build is failing
2024-07-09 23:44:24 +09:00
6407d3c175 removed the option HCL_TRAIT_LANG_ENABLE_BLOCK, thus removing conditional codes for simplicity.
All checks were successful
continuous-integration/drone/push Build is passing
changed the compiler to require a block expression as the class body
2024-07-06 12:16:05 +09:00
071d971457 added more test cases
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-01 00:11:51 +09:00
75580f5235 fixed the bug accessing the wrong context in IVAR and CVAR_M instructions
All checks were successful
continuous-integration/drone/push Build is passing
2024-05-31 15:16:31 +09:00
c25f0dabdb compiler fix to prohibit self. or super. in out-of-class method defintion nested in a normal method in a class
All checks were successful
continuous-integration/drone/push Build is passing
2024-05-29 23:19:25 +09:00
b4d435a593 compiler improvement to support out-of-class class method or calss instance method definitions. pending more tests
All checks were successful
continuous-integration/drone/push Build is passing
2024-05-26 23:18:26 +09:00
803f9b2817 fixed the tv.wcount and tv.s.len restoration logic upon compiliation failure
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-21 02:24:27 +09:00
f9bf37f8bf fixed the lvalue check in the assignment list in read.c
All checks were successful
continuous-integration/drone/push Build is passing
touched up fnblk handling in comp.c
updated more code in hcl-x.c
2024-04-18 23:06:28 +09:00
003ebb1b94 wip - more reworking on hcl server/client code
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-15 02:23:55 +09:00
897042f7f7 simplified the CLASS_LOAD instruction by chaining it with a PUSH instruction. now the class name part of the out-of-class method defintion refers to a normal variable
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-13 17:17:15 +09:00
637e8ba3c4 fixed the compiler's check for block expression after if, elif, else, try, catch
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-13 00:48:23 +09:00
2437fadedf fixed the compiler to check the presense of the exception handler expression in the catch part
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-10 19:48:49 +09:00
7634df5449 added the str.atPut primitive
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-10 19:23:15 +09:00
b91e48d2a1 added hcl_seterrbfmtloc() and hcl_seterrufmtloc()
All checks were successful
continuous-integration/drone/push Build is passing
added the errloc field to hcl_t to capture the exception location
2024-04-05 01:26:02 +09:00
a0e47d79f9 wip - tiny change to out-of-tree method defintion handling
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-16 16:36:01 +09:00
9ff7c32262 updated test cases
All checks were successful
continuous-integration/drone/push Build is passing
implementing method defintion outside the class definition block
2024-03-14 23:26:38 +09:00
37e0efc74a separated tuple([] used for assignment) from array(holding data)
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-10 22:38:01 +09:00
f6f4d0f259 enhanced the reader to check lvalue for assignment in advance
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-10 12:09:56 +09:00
00ad4dd779 added a test case to check a block expression as a conditional expression for if
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-09 22:48:04 +09:00
8345e2f949 enhanced the binop expression check in leave_list() in read.c
All checks were successful
continuous-integration/drone/push Build is passing
fixed the issue of the lost line terminator after the comment text which caused the next line to be treated as the same line
2024-03-09 17:10:51 +09:00
081c6d1874 added a double lambda test case
Some checks failed
continuous-integration/drone/push Build is failing
2024-03-09 14:16:51 +09:00
49ad657544 added an internal macro HCL_LANG_AUTO_FORGE_XLIST_ALWAYS to control the xlist enclosing feature and updated related test cases
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-09 11:57:02 +09:00
9cd1f90d5d wip - full oop - ignition ok - able to create bootstrapping classes. - able to instantiate objects
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-08 00:23:52 +09:00
a4d8d8e2a5 WIP - updating pascal wrapper with its own cci handler
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-13 00:57:30 +09:00
cac171f4b2 enhanced configure.ac to better support fpc wrapper's linking when findng compiler's builtin libraries such as libgcc or libquadmath
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-11 13:41:32 +09:00
b86eb13fb1 implemented simple binary operator handling in the reader code
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-10 12:23:34 +09:00
00438200f9 fixed a test case regarding self and super as a return value
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-08 01:39:21 +09:00
ded917711e fixed err.sh to produce the expected line upon failure.
All checks were successful
continuous-integration/drone/push Build is passing
updated t/Makefile.am to use $(SHELL) intead of sh
2024-02-05 22:23:38 +09:00
4d5f2266b4 enhanced the test runner for errors to support multiple scripts in a single file
Some checks failed
continuous-integration/drone/push Build is failing
2024-02-05 02:43:50 +09:00
d99a514278 WIP - introducing the BINOP token
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-04 21:35:31 +09:00
48e6df233b changed ::: to :: to indicate class variables, parent class, retvar
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-04 01:57:53 +09:00
c2928615a4 shortened ::* to :*
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-03 18:50:10 +09:00
2e1ae8d9ee WIP - #b[ token for byte array
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-27 19:10:56 +09:00
aaa6e35787 enhanced the reader and compiler to treat characters and strings prefixed with b and u as a limited range character and a byte array with internal terminating null at the back 2024-01-25 23:48:06 +09:00
b8e0b3578b WIP - implementing b or u prefix for a string or a character literal
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-24 16:26:30 +09:00
bc7cbd9ed2 renumbers error testers basing on 5000.
All checks were successful
continuous-integration/drone/push Build is passing
fixed a compiler bug not checking the lower bound of block depth in find_variable_backward_with_word()
2024-01-23 01:11:13 +09:00
a02c323393 removed the cfg package from go code.
All checks were successful
continuous-integration/drone/push Build is passing
instead, started using -ldflags "-X var=val" to set constant values
2024-01-22 01:27:39 +09:00
e3120e20a2 fixed wrong semicolon handling and enhanced eol/semiclon handling
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-21 02:23:19 +09:00
f88c3a9c1f added a new error case. the case yet to be resolved in implementation
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-20 10:12:37 +09:00
f01c499832 added line-break escaping
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-18 22:55:50 +08:00
b3f363c94f experimenting with a new line as a terminator like a semicolon. this breaks some test cases as of now
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-18 18:16:05 +08:00
656af796ed updated testers with updated syntax
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-15 00:47:01 +09:00
48a54d61c1 updated the reader to forge an outer xlist automatically if the beginning is a complex literal expression like array([]), dictionary(#{}), etc
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-14 09:48:57 +09:00
cf0162e140 := experiment
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-07 10:38:37 +09:00
9bc90c4d60 added HCL_MOD_LIBDIRS
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-05 15:01:59 +09:00
dab0c01e73 removed MLIST by LPARCOLON
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-03 21:11:23 +09:00
758d5e953b updated multiple test files
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-03 00:45:34 +09:00
309442e307 enhanced the compiler to show a proper message for a redundant class name defined with 'class'
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-02 13:59:03 +09:00
c82b56fdf6 enhanced the MLIST syntax - '(obj:message arg1 arg2)'
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-02 01:41:41 +09:00
0bf3bde497 making variable resolution more consisitent. class name resolution part still in progress
Some checks failed
continuous-integration/drone/push Build is failing
2023-12-02 12:52:36 +09:00
924d4ad5e2 updating the compiler to recognize class-level variables accessors prefixed with self/super in assignment expressions
Some checks failed
continuous-integration/drone/push Build is failing
2023-12-02 03:35:59 +09:00
bb4786b6ca some compiler enhancements
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-29 15:54:37 +09:00
57629478a1 some 'do' experiment
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-28 20:47:23 +09:00
9f4bf7485d enhanced the compiler to prohibit variable declaration after 'do' if it's the head of block expression
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-28 01:44:13 +09:00
f3c0c1b8c1 enhanced the compiler to prohibit variable declaration in class init scope
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-27 18:25:27 +09:00
e91dde6213 added some error check scripts
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-27 00:08:59 +09:00
84660b6e79 simplified the block expression checking in processing defun by calling the common checker function
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-15 09:58:02 +09:00
4f8e7ae76e added the 'fun' symbol as an alias to 'lamba'
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-14 12:20:47 +09:00
b6c1cc8864 fixed fun-01.hcl
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-13 16:36:35 +09:00
1c083885bc added a new test script
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-12 23:03:47 +09:00
41ca7a219d chnaged ; to ## in test programs
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-11 17:57:18 +09:00
889d5d90ae compiler fix to support the code block expression
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-10 02:59:41 +09:00
2f9ed77452 added --enable-hclgo
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-27 18:26:24 +09:00
de94b4e66f added the go wrapper files. work in progress
Some checks failed
continuous-integration/drone/push Build is failing
2023-10-27 18:20:02 +09:00
fe2b9456f4 updated configure.ac to capture configure command and arguments
All checks were successful
continuous-integration/drone Build is passing
> used the captured info in bin/main.c
2023-10-08 00:51:07 +09:00
065147c97d changed AC_CONFIG_HEADER to AC_CONFIG_HEADERS in configure.ac 2022-08-17 09:59:29 +00:00
7263ddf7e9 added a test case for vlist inside the 'do' expression inside a data list 2022-07-30 16:07:39 +00:00
72b0da966f fixed the vlist reading in the feed-based reader 2022-07-30 03:02:57 +00:00
9eda7a1208 appended -x to the hcl test driver 2022-07-29 14:51:00 +00:00
3c5dd6de57 fixed a syntax error in var-01.hcl 2022-05-06 00:17:26 +00:00
c80dd5820d added test code for variadic arguments 2022-05-05 14:38:43 +00:00
0725bfe27a added more test code 2022-05-05 13:04:04 +00:00
ff089929a9 added HCL_EUNDEFVAR 2022-05-05 04:03:56 +00:00
88808b1fae added t/insta-2.hcl 2022-03-22 14:45:56 +00:00
8747afba63 first successful implementation of class instantion methods 2022-03-17 13:22:17 +00:00
9f38258dd2 fixed a test case 2022-03-06 15:57:01 +00:00
a9ed8220ff added a test case for non-local return 2022-03-06 00:39:13 +00:00
6d409c809f proper return variables handling in message sends 2022-02-21 16:07:55 +00:00
e70e54293d some testsuites enhancement 2022-02-21 15:22:22 +00:00
5c7febf9a8 integrating test scripts 2022-02-21 08:15:00 +00:00
f0b6ccdf42 enhanced the compiler to emit the right instruction for super 2022-02-19 17:26:26 +00:00
e482ce620f fixed wrong instructions generated for set-r and return variables.
class variables access fixed to use hcl->active_context->home->owner instead of hcl->active_context->owner
2022-02-19 16:57:06 +00:00
2d9f5b51ad added sys.time, sys.random, sys.srandom.
removed test-bi.sh
wrote a simple bigint test program into test-bi.hcl
2019-04-17 03:46:39 +00:00
9045220ef8 changed hcl_inttostr()
touched up log output and formatted output functions
2019-04-16 15:46:00 +00:00
dc3c393247 added -v to hcl. found a bug of a new line printed when printf is called. need to debug it 2019-04-16 09:35:56 +00:00