notedown_ast 0.14.5

Notedown Abstract Syntax Tree
Documentation
1
2
3
4
5
6
7
8
9
10
11
mod add;
mod index;
mod mul;

use crate::{nodes::Value, NoteError, Result};
use num::{BigInt, Signed, ToPrimitive};
use std::ops::{Add, Div, Mul, Neg, Shr, Sub};

fn fail_int2dec(n: BigInt) -> Result<Value> {
    Err(NoteError::runtime_error(format!("Can not convert `Integer` {} to `Decimal`", n)))
}