This website requires JavaScript.
Explore
Help
Sign In
patrick
/
foliage-rs
Watch
1
Star
0
Fork
You've already forked foliage-rs
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
5bbb09eef8
foliage-rs
/
src
/
format.rs
8 lines
77 B
Rust
Raw
Normal View
History
Unescape
Escape
Split formatting utils into separate files For clarity, this moves the formatting functionality related to formulas and terms into two separate files.
2020-04-09 22:09:15 +02:00
mod
formulas
;
mod
terms
;
Initial commit This provides an abstract syntax tree for first-order logic with integer arithmetics. Initially, the following types of formulas are supported: - Booleans values (true and false) - predicates - negated formulas - comparisons of terms (<, ≤, >, ≥, =, ≠) - implications and biconditionals - conjunctions and disjunctions of formulas - existentially and universally quantified formulas In addition, these types of terms are provided: - Boolean values (true and false) - integers - strings - special integers (infimum and supremum) - symbolic functions - variables - binary operations (addition, subtraction, multiplication, division, modulo, exponentiation) - unary operations (absolute value, numeric negation)
2020-02-05 03:17:28 +01:00
trait
Precedence
{
fn
precedence
(
&
self
)
->
i32
;
}