oczor
oczor copied to clipboard
Oczor is a simple statically typed language that compiles to JavaScript, Lua, Ruby and Emacs Lisp
This seems like a neat approach to explore especially considering the wide range of targets this transpiles to. Any plans to continue development & maintenance and further increase the interoperability...
some of the JavaScript examples look like this: ~~~js var func = function(x, y) { return x + y + 1; }; ~~~ however **var** is rarely what will be...
update
``` y = x with (foo = 2) ``` What's it compile to?
``` src/Oczor/Parser/ParserState.hs:9:1: error: Failed to load interface for ‘Text.Megaparsec.String’ Perhaps you meant Text.Megaparsec.Stream (from megaparsec-6.2.0) Text.Megaparsec.Error (from megaparsec-6.2.0) Text.Megaparsec.Perm (from megaparsec-6.2.0) Use -v to see a list of the files...
Непонятно, зачем рекурсия в функции: ```hs renameVarsInExpr :: Expr -> Infer Expr renameVarsInExpr x = flip cataM x $ \case ExprTypeF tp -> ExprType renameVars vars tp x -> return...
- [ ] Use `st ^.` https://github.com/ptol/oczor/blob/master/src/Oczor/Compiler/Compiler.hs#L100 - [x] Use patterns: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/CodeGenAst.hs#L52 - [x] Use `.` and ``: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L33 - [x] Use `$`: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L44 - [x] Replace with `case`: https://github.com/ptol/oczor/blob/master/src/Oczor/Converter/Converter.hs#L108...
I think that it is possible to think of `let in / where` as an anonymous module, that is immediately exposed to local scope and vice versa. Thus one of...