tomoyanonymous on new-ast
fixed tuple parser fixed recursive call allows empty argument and 13 more (compare)
tomoyanonymous on new-ast
fixed foldl logic fixed X expression codes fixed ast_lowering codes and 15 more (compare)
tomoyanonymous on new-ast
fixed compile error on tests (compare)
tomoyanonymous on new-ast
suppressed errors (compare)
tomoyanonymous on new-ast
[skip ci]applied new type defin… (compare)
tomoyanonymous on new-ast
uncommented assertion made ffi to new type implementa… add ffi to type inference and 2 more (compare)
tomoyanonymous on new-ast
[skip ci] imple new type inferer (compare)
tomoyanonymous on new-ast
[skip ci fixed bug] [skip ci]typeinferer unifier im… (compare)
tomoyanonymous on new-ast
wip new ast parsing [skip ci] succeeded to compile … (compare)
tomoyanonymous on new-ast
impl ast lowering (compare)
Install through homebrew
, the target of brew tap
is wrong (it's mimiu-org/mimium
)
Thanks for reporting! This code is valid from a view of the definition of syntax. A definition of Block is one or more statements enclosed with brace-brackets(and, last line optionally can be expression, not a statement). so { return 1 }
is equivalent to just 1
. However indeed, this behavior would be confusing for those who get used to general imperative semantics like C. For example,
fn something(arg1)-> float{
is_error = arg1 > 0.5
if(is_error){
return 200
}
return 100
}
In current semantics, the function returns always 100
because return 200
in the if statement will be a return value of if statement, not the function and the return value of if is discarded.
fn something(arg1)-> float{
is_error = arg1 > 0.5
if(is_error){
return 200
}else{
return 100
}
}
The example above is valid because, again, the last line of block of function, is the single expression of If. Thus the return value of if statement becomes return value of function itself.
I am not completely sure whether this semantics is reasonable or not, so feedback is welcome...
netlify CMS and open authoring might be a good solution to make editing more accessible https://www.netlifycms.org/docs/open-authoring
Added open authoring workflow on our website. You can login to admin menu with your github account via
https://mimium.org/admin/
The articles shown in admin menu can be modified by editing this configure.yml
https://github.com/mimium-org/mimium-web/blob/master/static/admin/config.yml
Because creating nested directory is not supported on Netlify CMS, we need to edit config.yml when new folder is added(creating new articles on existing folder is OK)
This code is invalid in mimium v0.1.5?
t = 0
fn dsp() -> float {
t = t + 1
return sin(t)
}
Compiler returns with output
Error: Lexer: Unrecognized char ""
Error: Lexer: Unrecognized char ""
Error: Lexer: Unrecognized char ""
Error: syntax error, unexpected number_token at 1:6 to 1:7
Error: parse error.
return code: 1
Download failed: https://dl.bintray.com/tomoyanonymous/bottles-mimium/mimium-0.4.0.catalina.bottle.tar.gz