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:
Manual usage
Put the following dependency into your project's dependences section:
repl.d
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);
}
}
- Registered by Kentaro Kakinuma
- 0.0.3 released 5 years ago
- Sobaya007/repl.d
- proprietary
- Copyright © 2019, sobaya
- Authors:
- 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 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
70 downloads total
-
- Score:
- 0.0
- Short URL:
- repl-d.dub.pm