aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-02-02 21:47:50 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-02-02 21:47:50 +0100
commit295f5c1a2f3634fa28619c828d3af58982661118 (patch)
tree2e7252d3e49f69351f6e82b43cf91fc541aaec84 /src/lib.rs
parent6437e4844de0070b382b5e1a953d114263db322f (diff)
downloadsylt-295f5c1a2f3634fa28619c828d3af58982661118.tar.gz
fix references
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index de670b7..c1280b3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -317,13 +317,13 @@ pub enum Op {
Index,
/// Looks up a field by the given name
/// and replaces the parent with it.
- /// Currently only expects [Blobs].
+ /// Currently only expects [Value::Blob].
///
/// {O} - Get(F) - {O.F}
Get(String),
/// Looks up a field by the given name
/// and replaces the current value in the object.
- /// Currently only expects [Blobs].
+ /// Currently only expects [Value::Blob].
///
/// {O} - Set(F) - {}
Set(String),
@@ -452,8 +452,8 @@ pub enum Op {
/// of arguments. The callable value is
/// then replaced with the result.
///
- /// Callable things are: [Blob], [Function],
- /// and [ExternFunction].
+ /// Callable things are: [Value::Blob], [Value::Function],
+ /// and [Value::ExternFunction].
///
/// {F, A, B} - Call(2) - {F(A, B)}
Call(usize),
@@ -477,6 +477,11 @@ pub enum Op {
Yield,
}
+///
+/// Module with all the operators that can be applied
+/// to values.
+///
+/// Broken out because they need to be recursive.
mod op {
use super::Value;
use std::rc::Rc;