Giter VIP home page Giter VIP logo

mincaml_self_hosting's Introduction

これについて

https://github.com/satos---jp/cpuex_compiler をSelf-Hostingしたいな~

使い方

src/compiler, src/lex, src/yacc で make をすると、それぞれ一番上に ./main, ./my_lex, ./my_yacc を出力します。それぞれ ocamlc, ocamllex, ocamlyacc に気持ち対応しています。 テストが test フォルダ内で ./tester.py を叩くと走ります。

進捗

lexer( https://github.com/satos---jp/mincaml_self_hosting/tree/master/src/lex )に関してbootstrapが(細かな部分を除いて)できた。(ハズ)

mincamlからの拡張

  • let多相
  • ヴァリアント定義
  • パターンマッチ
  • String型,Ref型
  • Openでのソースコード分割
  • lexの実装
  • yaccの実装
  • 各種ライブラリ(List,String,Lexing,Parsing)の一部

TODO

  • Openまわりもっとシンプルにする
  • Printfの型推論まわりちゃんとやる
  • ガベージコレクション
  • yaccの precedence
  • 多相の値制限(なので現在型推論がボロボロ)
  • Sysなどのモジュール追加
  • try with

mincaml_self_hosting's People

Contributors

satos---jp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.