MCPcopy Index your code
hub / github.com/elipmoc/Ruscall

github.com/elipmoc/Ruscall @v0.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.0 ↗ · + Follow
198 symbols 424 edges 42 files 32 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Ruscall

Build Status license Coverage Status

自作言語処理系のコンパイラ

ラスカル

一緒に開発してくれる人募集!

お願いします。

・やってほしいこと

・テストの追加(わざと失敗するテストがまだない)

・Debugトレイトで綺麗に構文木や型を表示できるようにする

・リファクタリング

インストールガイド

[Linux]

apt-get install llvm-6.0
apt-get install g++
LLVM_SYS_60_PREFIX=/usr/lib/llvm-6.0 cargo run

もしくはバイナリを添付してるのでそれを使ってください

[Windows]

バイナリを添付してるのでそれを使ってください

使い方

test.rscというサンプルソースファイルがあるのでそれを使ってみる。

cargoを使うやり方

cargo run -- -build test.rsc

バイナリを使ったやり方

ruscall -build test.rsc

実行するとtest.rsc.outまたはtest.rsc.exeが生成されます。

また

-build test.rsc hoge

のようにして、出力ファイルの名前を指定できます。

目的

Rust、Scala、Haskellのいいところを結集した言語を作る。

DFD

dfd

Extension points exported contracts — how you extend this code

TupleTypeBase (Interface)
タプルぽく振る舞えるかの制約 [4 implementers]
src/compile/types/types.rs
ShowType (Interface)
(no doc) [7 implementers]
src/compile/types/show_type.rs
TypeGet (Interface)
(no doc) [15 implementers]
src/compile/semantic_analysis/type_get.rs

Core symbols most depended-on inside this repo

to_string
called by 40
src/compile/error.rs
no_name_get
called by 16
src/compile/semantic_analysis/type_inference/type_env.rs
unify
called by 16
src/compile/semantic_analysis/type_inference/type_env.rs
get_expr_ast
called by 15
src/compile/ast_transformer/resolve_op.rs
to_llvm_type
called by 11
src/compile/code_gen.rs
create_error
called by 9
src/compile/semantic_analysis/type_inference/unify.rs
get
called by 9
src/compile/semantic_analysis/type_inference/type_env.rs
look_up
called by 9
src/compile/semantic_analysis/type_inference/look_up.rs

Shape

Method 103
Class 51
Function 30
Enum 11
Interface 3

Languages

Rust98%
C2%

Modules by API surface

src/compile/ir/ast.rs42 symbols
src/compile/types/types.rs32 symbols
src/compile/ir/mir.rs24 symbols
src/compile/semantic_analysis/type_inference/type_env.rs15 symbols
src/compile/semantic_analysis/type_inference/unify.rs9 symbols
src/compile/semantic_analysis/type_inference/look_up.rs7 symbols
src/compile/code_gen.rs7 symbols
tests/all/test.rs5 symbols
src/compile/semantic_analysis/variable_table.rs5 symbols
src/compile/ast_transformer/resolve_op.rs5 symbols
src/compile/types/show_type.rs4 symbols
src/compile/semantic_analysis/hir_to_mir.rs4 symbols

For agents

$ claude mcp add Ruscall \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page