Skip to content

umatani/tiny-opalclj

Repository files navigation

tiny-opalclj

Install

  1. Install Racket.
  2. Build from the source code.
    $ git clone https://github.com/umatani/tiny-opalclj.git
    $ cd tiny-opalclj
    $ raco pkg install

Usage

  1. Create a TJ source file.

    #lang tiny-opalclj
    #eval eval-abs
    
    class A {
      int f(int a) {
         return a + 1;
      }
    }
  2. require the source from REPL.

  3. To execute a method concretely, invoke it from REPL (self is set to a dummy object).

    > (A$f 100)
  4. To interpret a method abstractly, specify a default parameter value for that method in the source and require it again.

    #lang tiny-opalclj
    #eval eval-abs
    
    class A {
      int f(int a = 3) {
         return a + 1;
      }
    }

About

Execution Model of an Abstract Interpreter that Intertwines with Concrete Code Execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages