kyle 1.0.0

A minimal D application.


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:

Kyle

A simple C-Style macro-based Programming language written in D.

A sample File would be:


? Mod is an instruction to give the file a name.

#mod main

#test_function 1 2 3 4 "fifth argument"

with a basic API.

import kyle;

void test_function(kyle_arguments ArgList) {
 string l = kyle_vararg!(string).kyle_convert_argument(0, ArgList);
}

void main(string[] args) {
 auto s = kyle_new(); // create a new Kyle Scope
 
 kyle_allow_module(s); // Allow the module header.

 kyle_add_delegate(s, 
  &test_function,
  "test_function");
 
 kyle_set_code("#print \"hello!\";");

 kyle_execute(s); // Execute.

 // After execution, you can gather information afterward.

 string module_name = kyle_toplevel_module(s);

 writeln("The module name: " ~ module_name);
}
Authors:
  • seymo
Dependencies:
none
Versions:
1.0.3 2022-Apr-27
1.0.2 2022-Apr-27
1.0.1 2022-Apr-27
1.0.0 2022-Apr-27
~master 2022-Apr-28
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 2 downloads total

Score:
0.3
Short URL:
kyle.dub.pm