├── .eslintrc ├── .gitignore ├── CONTRIBUTORS.md ├── LICENSE ├── README.md ├── examples ├── array.iode ├── array.js ├── class.iode ├── class.js ├── comment.iode ├── comment.js ├── embedded.iode ├── embedded.js ├── for.iode ├── for.js ├── function.iode ├── function.js ├── hello.iode ├── hello.js ├── if.iode ├── if.js ├── include.iode ├── include.js ├── index.iode ├── index.js ├── jquery.iode ├── jquery.js ├── json.iode ├── json.js ├── mass_setting.iode ├── mass_setting.js ├── massvar.iode ├── massvar.js ├── modulus.iode ├── modulus.js ├── namespace.iode ├── namespace.js ├── negative.iode ├── negative.js ├── new.iode ├── new.js ├── numbers.iode ├── numbers.js ├── package.iode ├── package.js ├── percentage.iode ├── percentage.js ├── range.iode ├── range.js ├── regex.iode ├── regex.js ├── repeat.iode ├── repeat.js ├── return.iode ├── return.js ├── single.iode ├── single.js ├── std.iode ├── std.js ├── ternary.iode ├── ternary.js ├── throw.iode ├── throw.js ├── try.iode ├── try.js ├── typed_vars.iode ├── typed_vars.js ├── types_func.iode └── types_func.js ├── gulpfile.js ├── package.json └── src ├── ast.js ├── browser.js ├── command.js ├── developer.js ├── iode.js ├── lexer.js ├── parser.js └── token.js /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTORS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/CONTRIBUTORS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/README.md -------------------------------------------------------------------------------- /examples/array.iode: -------------------------------------------------------------------------------- 1 | var arr = [1, 2, 3] 2 | -------------------------------------------------------------------------------- /examples/array.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | var arr = [1, 2, 3]; 4 | -------------------------------------------------------------------------------- /examples/class.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/class.iode -------------------------------------------------------------------------------- /examples/class.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/class.js -------------------------------------------------------------------------------- /examples/comment.iode: -------------------------------------------------------------------------------- 1 | # comment! # 2 | 3 | var # anywhere # name = "Bill" 4 | -------------------------------------------------------------------------------- /examples/comment.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | 4 | var name = "Bill"; -------------------------------------------------------------------------------- /examples/embedded.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/embedded.iode -------------------------------------------------------------------------------- /examples/embedded.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/embedded.js -------------------------------------------------------------------------------- /examples/for.iode: -------------------------------------------------------------------------------- 1 | for (a = 0, 5 >= a, a++) { 2 | console.log(a) 3 | } -------------------------------------------------------------------------------- /examples/for.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/for.js -------------------------------------------------------------------------------- /examples/function.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/function.iode -------------------------------------------------------------------------------- /examples/function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/function.js -------------------------------------------------------------------------------- /examples/hello.iode: -------------------------------------------------------------------------------- 1 | console.log("Hello world!") -------------------------------------------------------------------------------- /examples/hello.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | console.log("Hello world!"); -------------------------------------------------------------------------------- /examples/if.iode: -------------------------------------------------------------------------------- 1 | if true { 2 | console.log("Nice!") 3 | } 4 | -------------------------------------------------------------------------------- /examples/if.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | if (true) { 4 | console.log("Nice!"); 5 | } -------------------------------------------------------------------------------- /examples/include.iode: -------------------------------------------------------------------------------- 1 | include "hello.fea" -------------------------------------------------------------------------------- /examples/include.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | 4 | console.log("Hello world!"); -------------------------------------------------------------------------------- /examples/index.iode: -------------------------------------------------------------------------------- 1 | var arr = [1, 2, 3] 2 | console.log(arr[1]) 3 | -------------------------------------------------------------------------------- /examples/index.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | var arr = [1, 2, 3]; 4 | console.log(arr[1]); -------------------------------------------------------------------------------- /examples/jquery.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/jquery.iode -------------------------------------------------------------------------------- /examples/jquery.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/jquery.js -------------------------------------------------------------------------------- /examples/json.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/json.iode -------------------------------------------------------------------------------- /examples/json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/json.js -------------------------------------------------------------------------------- /examples/mass_setting.iode: -------------------------------------------------------------------------------- 1 | var [a, b, c] = [1, 2, 3] 2 | -------------------------------------------------------------------------------- /examples/mass_setting.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/mass_setting.js -------------------------------------------------------------------------------- /examples/massvar.iode: -------------------------------------------------------------------------------- 1 | var [x, y, z] = [1, 2, 3] -------------------------------------------------------------------------------- /examples/massvar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/massvar.js -------------------------------------------------------------------------------- /examples/modulus.iode: -------------------------------------------------------------------------------- 1 | var a = 2 %% 5 2 | -------------------------------------------------------------------------------- /examples/modulus.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | var a = 2 % 5; -------------------------------------------------------------------------------- /examples/namespace.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/namespace.iode -------------------------------------------------------------------------------- /examples/namespace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/namespace.js -------------------------------------------------------------------------------- /examples/negative.iode: -------------------------------------------------------------------------------- 1 | var num = -1 - 5 2 | -------------------------------------------------------------------------------- /examples/negative.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | var num = -1 - 5; -------------------------------------------------------------------------------- /examples/new.iode: -------------------------------------------------------------------------------- 1 | var d = new Date 2 | 3 | console.log(d) -------------------------------------------------------------------------------- /examples/new.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | var d = new Date(); 4 | console.log(d); -------------------------------------------------------------------------------- /examples/numbers.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/numbers.iode -------------------------------------------------------------------------------- /examples/numbers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/numbers.js -------------------------------------------------------------------------------- /examples/package.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/package.iode -------------------------------------------------------------------------------- /examples/package.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/package.js -------------------------------------------------------------------------------- /examples/percentage.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/percentage.iode -------------------------------------------------------------------------------- /examples/percentage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/percentage.js -------------------------------------------------------------------------------- /examples/range.iode: -------------------------------------------------------------------------------- 1 | var a = [1..7] 2 | console.log(a) -------------------------------------------------------------------------------- /examples/range.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | var a = [1, 2, 3, 4, 5, 6, 7]; 4 | console.log(a); -------------------------------------------------------------------------------- /examples/regex.iode: -------------------------------------------------------------------------------- 1 | var reg = ///[0-9]+///g 2 | -------------------------------------------------------------------------------- /examples/regex.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | var reg = /[0-9]+/g; -------------------------------------------------------------------------------- /examples/repeat.iode: -------------------------------------------------------------------------------- 1 | var times = 5 2 | 3 | repeat 5 { 4 | console.log("Cool!") 5 | } 6 | -------------------------------------------------------------------------------- /examples/repeat.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/repeat.js -------------------------------------------------------------------------------- /examples/return.iode: -------------------------------------------------------------------------------- 1 | return 123 / 52352 -------------------------------------------------------------------------------- /examples/return.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | return 123 / 52352; -------------------------------------------------------------------------------- /examples/single.iode: -------------------------------------------------------------------------------- 1 | var coordinate = fn -> (x, y) x + y 2 | -------------------------------------------------------------------------------- /examples/single.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/single.js -------------------------------------------------------------------------------- /examples/std.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/std.iode -------------------------------------------------------------------------------- /examples/std.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/std.js -------------------------------------------------------------------------------- /examples/ternary.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/ternary.iode -------------------------------------------------------------------------------- /examples/ternary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/ternary.js -------------------------------------------------------------------------------- /examples/throw.iode: -------------------------------------------------------------------------------- 1 | throw "Error!" -------------------------------------------------------------------------------- /examples/throw.js: -------------------------------------------------------------------------------- 1 | /* Generated by Iode v0.0.1 */ 2 | 3 | throw "Error!"; -------------------------------------------------------------------------------- /examples/try.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/try.iode -------------------------------------------------------------------------------- /examples/try.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/try.js -------------------------------------------------------------------------------- /examples/typed_vars.iode: -------------------------------------------------------------------------------- 1 | var name:string = "John" 2 | -------------------------------------------------------------------------------- /examples/typed_vars.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/typed_vars.js -------------------------------------------------------------------------------- /examples/types_func.iode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/types_func.iode -------------------------------------------------------------------------------- /examples/types_func.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/examples/types_func.js -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/gulpfile.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/package.json -------------------------------------------------------------------------------- /src/ast.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/src/ast.js -------------------------------------------------------------------------------- /src/browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/src/browser.js -------------------------------------------------------------------------------- /src/command.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/src/command.js -------------------------------------------------------------------------------- /src/developer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/src/developer.js -------------------------------------------------------------------------------- /src/iode.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('./command'); 4 | -------------------------------------------------------------------------------- /src/lexer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/src/lexer.js -------------------------------------------------------------------------------- /src/parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/src/parser.js -------------------------------------------------------------------------------- /src/token.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danilolekovic/iode/HEAD/src/token.js --------------------------------------------------------------------------------