Skip to content

Commit

Permalink
Update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
rscarson committed May 1, 2022
1 parent 5b50bec commit 22cefdc
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.6.0
-----
Added (Implied)(Multiplication) 2x, etc
Overhaul of functions to enable the help commands
Add regex matching function

0.5.3
-----
Make errors more useful
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ categories = ["parser-implementations", "development-tools", "command-line-utili
homepage = "https://rscarson.github.io/Lavendeux/"
repository = "https://github.com/rscarson/lavendeux-parser"
readme = "readme.md"
version = "0.5.3"
version = "0.6.0"
edition = "2021"

[features]
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ help("strlen") // Get help for a specific function by name
concat("s1", "s2", ...) | strlen("string") | substr("string", start, [length])
uppercase("s1") | lowercase("S1") | trim(" s1 ")

// Regular expressions
regex("foo.*", "foobar") // foobar
regex("foo(.*)", "foobar", 1) // bar

// Rounding functions
ceil(n) | floor(n) | round(n, precision)

Expand Down
8 changes: 8 additions & 0 deletions src/functions/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ mod test_builtin_functions {
Value::String("foo(.*)".to_string()), Value::String("foobar".to_string()),
Value::Integer(1)
]).unwrap());
assert_eq!(Value::String("foobar".to_string()), (REGEX.handler)(&REGEX, &[
Value::String("foo(.*)".to_string()), Value::String("foobar".to_string()),
Value::Integer(0)
]).unwrap());
assert_eq!(Value::Boolean(false), (REGEX.handler)(&REGEX, &[
Value::String("foo(.*)".to_string()), Value::String("foobar".to_string()),
Value::Integer(6)
]).unwrap());
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
//! }
//! ```
//! Extensions give a more flexible way of adding functionality at runtime. Extensions are written in javascript.
#![doc(html_root_url = "https://docs.rs/lavendeux-parser/0.5.3")]
#![doc(html_root_url = "https://docs.rs/lavendeux-parser/0.6.0")]
#![warn(missing_docs)]
#![warn(rustdoc::missing_doc_code_examples)]

Expand Down

0 comments on commit 22cefdc

Please sign in to comment.