repl-d 0.0.3

REPL application and library for D programming language


To use this package, run the following command in your project's root directory:

repl.d

DUB Package CircleCI TravisCI codecov

This project is a REPL tool for D programming language. This package can be used for both single application and library.

Supported Features

:heavycheckmark: Variable Declaration :heavycheckmark: Function Declaration :heavycheckmark: Expression Evaluation :heavycheckmark: Module Import :heavycheckmark: Statement Execution :heavycheckmark: Add Dub Project Dependency :x: Template Function Declaration :x: Struct or Class Declaration

Application use

Just execute dub in the project root to start. If you want to break the line while input, type |.

Library use

Documentation is here.

Simple REPL tools can be implemented like below:

import std;
import repld;

void main() {
    auto runner = new REPLRunner(); // initialize runner
    runner.addDependency("sbylib", "~master"); // add dependent library

    /* Read-Eval-Print Loop */
    string input;
    while (true) {
        write("> ");
        input ~= readln;
        auto result = runner.run(input);
        if (!result.success)
            writeln(result.message);
    }
}
Authors:
  • sobaya
Dependencies:
libdparse
Versions:
0.0.3 2019-Dec-22
0.0.2 2019-Dec-19
0.0.1 2019-Dec-19
~master 2020-Jan-25
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 6 downloads total

Score:
0.8
Short URL:
repl-d.dub.pm