package
0.2.0
Repository: https://github.com/vanadium/core.git
Documentation: pkg.go.dev

# Functions

Boolean returns an untyped boolean Const.
EvalBinary returns the result of evaluating (x op y).
EvalUnary returns the result of evaluating (op x).
FromValue returns a typed Const based on value v.
Integer returns an untyped integer Const.
Rational returns an untyped rational Const.
String returns an untyped string Const.
ToBinaryOp converts s into a BinaryOp, or returns InvalidBinaryOp if it couldn't be converted.
ToUnaryOp converts s into a UnaryOp, or returns InvalidUnaryOp if it couldn't be converted.

# Constants

+ add.
& bitwise and.
^ bitwise not.
| bitwise or.
^ bitwise xor.
/ divide.
== equal.
>= greater than or equal.
> greater than.
Values for BinaryOp.
Values for UnaryOp.
<= less than or equal.
<< left shift.
&& logical and.
! logical not.
|| logical or.
< less than.
% modulo.
* multiply.
!= not equal.
- negate.
+ positive (nop).
>> right shift.
- subtract.

# Structs

Const represents a constant value, similar in spirit to Go constants.

# Type aliases

BinaryOp represents a binary operation to be performed on two Consts.
UnaryOp represents a unary operation to be performed on a Const.