From 295f5c1a2f3634fa28619c828d3af58982661118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Tue, 2 Feb 2021 21:47:50 +0100 Subject: fix references --- src/lib.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/lib.rs') 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; -- cgit v1.2.1