mirror of https://github.com/rm-dr/daisy
Constant changes
parent
8a58d2182a
commit
c92670c918
|
@ -44,22 +44,22 @@ pub fn p_find_subs(
|
|||
"zeta" => {Some("ζ")},
|
||||
"eta" => {Some("η")},
|
||||
"theta" => {Some("θ")},
|
||||
"iota" => {Some("ι")},
|
||||
"kappa" => {Some("κ")},
|
||||
//"iota" => {Some("ι")},
|
||||
//"kappa" => {Some("κ")},
|
||||
"lambda" => {Some("λ")},
|
||||
"mu" => {Some("μ")},
|
||||
"nu" => {Some("ν")},
|
||||
//"nu" => {Some("ν")},
|
||||
"xi" => {Some("ξ")},
|
||||
"omicron" => {Some("ο")},
|
||||
//"omicron" => {Some("ο")},
|
||||
"pi" => {Some("π")},
|
||||
"rho" => {Some("ρ")},
|
||||
"sigma" => {Some("σ")},
|
||||
"tau" => {Some("τ")},
|
||||
"upsilon" => {Some("υ")},
|
||||
//"upsilon" => {Some("υ")},
|
||||
"phi" => {Some("φ")},
|
||||
"chi" => {Some("χ")},
|
||||
"psi" => {Some("ψ")},
|
||||
"omega" => {Some("ω")}
|
||||
"omega" => {Some("ω")},
|
||||
|
||||
_ => {None}
|
||||
};
|
||||
|
|
|
@ -93,7 +93,11 @@ pub fn p_groupify(mut g: VecDeque<Token>) -> Result<Token, (LineLocation, Parser
|
|||
// unicode versions of each word.
|
||||
v_now.push_back(match &s[..] {
|
||||
"mod" => { Token::PreOperator(l, Operator::ModuloLong) },
|
||||
"π"|"pi" => { Token::Constant(l, 3.141592653, String::from("π")) },
|
||||
|
||||
// Mathematical constants
|
||||
"π"|"pi" => { Token::Constant(l, 3.141592653, String::from("pi")) },
|
||||
"e" => { Token::Constant(l, 2.71828, String::from("e")) },
|
||||
"phi"|"φ" => { Token::Constant(l, 1.61803, String::from("phi")) },
|
||||
_ => { return Err((l, ParserError::Undefined(s))); }
|
||||
});
|
||||
lookback(v_now)?;
|
||||
|
|
Loading…
Reference in New Issue