├── .gitignore ├── Cargo.toml ├── LICENSE ├── PlanningDocument.md ├── README.md ├── output ├── .gitignore ├── Cargo.toml ├── README.md ├── js │ └── index.js ├── package-lock.json ├── package.json ├── src │ └── lib.rs ├── static │ └── index.html ├── tests │ └── app.rs ├── ts_output │ ├── dist │ │ └── output.js │ ├── output.ts │ ├── package-lock.json │ ├── package.json │ ├── tsconfig.json │ └── webpack.config.js ├── tsconfig.json └── webpack.config.js ├── run.sh ├── setup.sh ├── src ├── main.rs ├── parser │ ├── ast.rs │ ├── mod.rs │ └── parser.rs ├── reglico.lalrpop ├── settings │ ├── builtin │ │ ├── builtin_funcs.rs │ │ ├── console_log.rs │ │ ├── mod.rs │ │ └── performance_now.rs │ └── mod.rs ├── to_ts_rust │ ├── common_struct.rs │ ├── mod.rs │ ├── to_rust │ │ ├── builtin │ │ │ ├── builtin.rs │ │ │ └── mod.rs │ │ ├── common_methods │ │ │ ├── common_methods.rs │ │ │ └── mod.rs │ │ ├── expr_stmt │ │ │ ├── expr_stmt.rs │ │ │ └── mod.rs │ │ ├── func │ │ │ ├── func.rs │ │ │ └── mod.rs │ │ ├── if_stmt │ │ │ ├── if_stmt.rs │ │ │ └── mod.rs │ │ ├── mod.rs │ │ ├── to_rust.rs │ │ └── variable_declaration │ │ │ ├── mod.rs │ │ │ └── variable_declaration.rs │ └── to_ts │ │ ├── builtin │ │ ├── builtin.rs │ │ └── mod.rs │ │ ├── common_methods │ │ ├── common_methods.rs │ │ └── mod.rs │ │ ├── expr_stmt │ │ ├── expr_stmt.rs │ │ └── mod.rs │ │ ├── func │ │ ├── func.rs │ │ └── mod.rs │ │ ├── if_stmt │ │ ├── if_stmt.rs │ │ └── mod.rs │ │ ├── mod.rs │ │ ├── to_ts.rs │ │ └── variable_declaration │ │ ├── mod.rs │ │ └── variable_declaration.rs ├── transpile.rs └── type_parser │ ├── check_and_inference │ ├── builtin │ │ ├── builtin.rs │ │ └── mod.rs │ ├── common_methods │ │ ├── common_methods.rs │ │ └── mod.rs │ ├── expr_stmt │ │ ├── expr_stmt.rs │ │ └── mod.rs │ ├── func │ │ ├── func.rs │ │ └── mod.rs │ ├── if_stmt │ │ ├── if_stmt.rs │ │ └── mod.rs │ ├── mod.rs │ ├── type_check_and_inference_struct.rs │ └── variable_declaration │ │ ├── mod.rs │ │ └── variable_declaration.rs │ ├── mod.rs │ ├── type_parser.rs │ └── typed_ast.rs └── test.reli /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/LICENSE -------------------------------------------------------------------------------- /PlanningDocument.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/PlanningDocument.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/README.md -------------------------------------------------------------------------------- /output/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | /dist 3 | /target 4 | /pkg 5 | /wasm-pack.log 6 | -------------------------------------------------------------------------------- /output/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/Cargo.toml -------------------------------------------------------------------------------- /output/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/README.md -------------------------------------------------------------------------------- /output/js/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/js/index.js -------------------------------------------------------------------------------- /output/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/package-lock.json -------------------------------------------------------------------------------- /output/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/package.json -------------------------------------------------------------------------------- /output/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/src/lib.rs -------------------------------------------------------------------------------- /output/static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/static/index.html -------------------------------------------------------------------------------- /output/tests/app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/tests/app.rs -------------------------------------------------------------------------------- /output/ts_output/dist/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/ts_output/dist/output.js -------------------------------------------------------------------------------- /output/ts_output/output.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/ts_output/output.ts -------------------------------------------------------------------------------- /output/ts_output/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/ts_output/package-lock.json -------------------------------------------------------------------------------- /output/ts_output/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/ts_output/package.json -------------------------------------------------------------------------------- /output/ts_output/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/ts_output/tsconfig.json -------------------------------------------------------------------------------- /output/ts_output/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/ts_output/webpack.config.js -------------------------------------------------------------------------------- /output/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/tsconfig.json -------------------------------------------------------------------------------- /output/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/output/webpack.config.js -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | cd output 2 | npm start 3 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/setup.sh -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/parser/ast.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/parser/ast.rs -------------------------------------------------------------------------------- /src/parser/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/parser/mod.rs -------------------------------------------------------------------------------- /src/parser/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/parser/parser.rs -------------------------------------------------------------------------------- /src/reglico.lalrpop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/reglico.lalrpop -------------------------------------------------------------------------------- /src/settings/builtin/builtin_funcs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/settings/builtin/builtin_funcs.rs -------------------------------------------------------------------------------- /src/settings/builtin/console_log.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/settings/builtin/console_log.rs -------------------------------------------------------------------------------- /src/settings/builtin/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/settings/builtin/mod.rs -------------------------------------------------------------------------------- /src/settings/builtin/performance_now.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/settings/builtin/performance_now.rs -------------------------------------------------------------------------------- /src/settings/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod builtin; -------------------------------------------------------------------------------- /src/to_ts_rust/common_struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/common_struct.rs -------------------------------------------------------------------------------- /src/to_ts_rust/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/mod.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/builtin/builtin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/builtin/builtin.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/builtin/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod builtin; -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/common_methods/common_methods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/common_methods/common_methods.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/common_methods/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod common_methods; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/expr_stmt/expr_stmt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/expr_stmt/expr_stmt.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/expr_stmt/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod expr_stmt; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/func/func.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/func/func.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/func/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod func; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/if_stmt/if_stmt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/if_stmt/if_stmt.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/if_stmt/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod if_stmt; -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/mod.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/to_rust.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/to_rust.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/variable_declaration/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod variable_declaration; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_rust/variable_declaration/variable_declaration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_rust/variable_declaration/variable_declaration.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/builtin/builtin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/builtin/builtin.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/builtin/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod builtin; -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/common_methods/common_methods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/common_methods/common_methods.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/common_methods/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod common_methods; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/expr_stmt/expr_stmt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/expr_stmt/expr_stmt.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/expr_stmt/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod expr_stmt; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/func/func.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/func/func.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/func/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod func; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/if_stmt/if_stmt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/if_stmt/if_stmt.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/if_stmt/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod if_stmt; -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/mod.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/to_ts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/to_ts.rs -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/variable_declaration/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod variable_declaration; 2 | -------------------------------------------------------------------------------- /src/to_ts_rust/to_ts/variable_declaration/variable_declaration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/to_ts_rust/to_ts/variable_declaration/variable_declaration.rs -------------------------------------------------------------------------------- /src/transpile.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/transpile.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/builtin/builtin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/builtin/builtin.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/builtin/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod builtin; -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/common_methods/common_methods.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/common_methods/common_methods.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/common_methods/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod common_methods; 2 | -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/expr_stmt/expr_stmt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/expr_stmt/expr_stmt.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/expr_stmt/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod expr_stmt; 2 | -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/func/func.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/func/func.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/func/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod func; 2 | -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/if_stmt/if_stmt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/if_stmt/if_stmt.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/if_stmt/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod if_stmt; -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/mod.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/type_check_and_inference_struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/type_check_and_inference_struct.rs -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/variable_declaration/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod variable_declaration; 2 | -------------------------------------------------------------------------------- /src/type_parser/check_and_inference/variable_declaration/variable_declaration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/check_and_inference/variable_declaration/variable_declaration.rs -------------------------------------------------------------------------------- /src/type_parser/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/mod.rs -------------------------------------------------------------------------------- /src/type_parser/type_parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/type_parser.rs -------------------------------------------------------------------------------- /src/type_parser/typed_ast.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/src/type_parser/typed_ast.rs -------------------------------------------------------------------------------- /test.reli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMASHIBA1/reglico/HEAD/test.reli --------------------------------------------------------------------------------