rewrote compile_fun() to support attribute list for a function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-02 00:33:34 +09:00
parent 29af1562fc
commit 3d0cdb5366
13 changed files with 496 additions and 284 deletions

View File

@ -1,5 +1,5 @@
defclass A [ a ] {
fun :* init1() {
fun(#ci) init1() {
| b |
set b (+ 1 2);
set a b;
@ -15,7 +15,7 @@ defclass A [ a ] {
printf ">>> %d\n" j;
}
fun :* init2() {
fun(#ci) init2() {
| b |
set b (+ 10 20);
set a b;
@ -26,7 +26,7 @@ defclass A [ a ] {
---
fun String length() { ##ERROR: syntax error - no argument list
fun String length() { ##ERROR: syntax error - 'String' not followed by ( but followed by 'length'
}
---