Expand description
§Dyon - a rusty dynamically typed scripting language
If you want to say thanks for Dyon, or you found any of these ideas inspiring,
please donate a small amount of money as a symbolic gesture to PayPal post at cutoutpro.com
.
Write a sentence describing why you think this is a good language and what you want to achieve.
I (bvssvni, creator of Dyon) appreciate grateful and heart-warming responses!
Re-exports§
Modules§
- ast
- Dyon Abstract Syntax Tree (AST).
- embed
- Traits for Dyon interop.
- macros
- Dyon macros.
- runtime
- Dyon runtime.
- threading
- Wrapper code for co-routines.
Macros§
- dyon_fn
- Used to declare an embedded/external function in Rust which can be called from Dyon.
- dyon_
fn_ pop - This macro is used by some other Dyon macros.
- dyon_
macro_ items - This macro is used by some other Dyon macros.
- dyon_
obj - Used to implement
embed::PopVariable
andembed::PushVariable
for some object. - join
- Joins thread.
- spawn
- Spawns new thread.
Structs§
- Call
- Used to call specific functions with arguments.
- Closure
Environment - Stores closure environment.
- Dfn
- Stores preloaded function constraints. These are already checked.
- Error
- Stores Dyon errors.
- FnBin
OpRef - Used to store direct reference to external function.
- FnReturn
Ref - Used to store direct reference to external function.
- FnUn
OpRef - Used to store direct reference to external function.
- FnVoid
Ref - Used to store direct reference to external function that does not return anything.
- Link
- Stores a link structure.
- Mat4
- Wraps a 4D matrix for easier embedding with Dyon.
- Module
- Stores functions for a Dyon module.
- Prelude
- Stores a prelude, used to load standard intrinsics and type check new modules.
- Thread
- Stores a thread handle.
- Unsafe
Ref - Prevents unsafe references from being accessed outside library.
- Vec4
- Wraps a 4D vector for easier embedding with Dyon.
Enums§
- FnExt
- Refers to an external function.
- FnIndex
- Refers to a function.
- Lt
- Argument lifetime constraint.
- Type
- Stores a Dyon type.
- Variable
- Dyon variable.
Constants§
- CSIE
- A common error message when the call stack is empty.
- TINVOTS
- A common error message when there is no value on the stack.
Statics§
- LAZY_
AND - Lazy invariant for
&&
. - LAZY_NO
- Lazy invariant that no arguments have lazy invariants.
- LAZY_OR
- Lazy invariant for
||
. - LAZY_
UNWRAP_ OR - Lazy invariant to unwrap first argument.
Functions§
- error
- Reports and error to standard output.
- load
- Loads source from file.
- load_
meta - Loads a source from meta data. Assumes the source passes the lifetime checker.
- load_
str - Loads a source from string.
- run
- Runs a program using a source file.
- run_str
- Runs a program from a string.
Type Aliases§
- Array
- Type alias for Dyon arrays.
- Lazy
Invariant - Type alias for lazy invariants of external functions.
- Object
- Type alias for Dyon objects.
- Rust
Object - Type alias for Rust objects.