diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-02 21:47:50 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-02 21:47:50 +0100 |
| commit | 295f5c1a2f3634fa28619c828d3af58982661118 (patch) | |
| tree | 2e7252d3e49f69351f6e82b43cf91fc541aaec84 /src/lib.rs | |
| parent | 6437e4844de0070b382b5e1a953d114263db322f (diff) | |
| download | sylt-295f5c1a2f3634fa28619c828d3af58982661118.tar.gz | |
fix references
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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; |
