nushell/src/parser
Belhorma Bendebiche fbc6f01cfb Add =~ and !~ operators on strings
`left =~ right` return true if left contains right, using Rust's
`String::contains`. `!~` is the negated version.

A new `apply_operator` function is added which decouples evaluation from
`Value::compare`. This returns a `Value` and opens the door to
implementing `+` for example, though it wouldn't be useful immediately.

The `operator!` macro had to be changed slightly as it would choke on
`~` in arguments.
2019-11-25 15:06:11 -05:00
..
hir --no-edit 2019-11-21 14:22:32 -08:00
parse Add =~ and !~ operators on strings 2019-11-25 15:06:11 -05:00
debug.rs --no-edit 2019-11-21 14:22:32 -08:00
deserializer.rs --no-edit 2019-11-21 14:22:32 -08:00
hir.rs --no-edit 2019-11-21 14:22:32 -08:00
parse.rs Replace crate visibility identifier with pub(crate) 2019-08-29 13:09:09 +02:00
parse_command.rs --no-edit 2019-11-21 14:22:32 -08:00
registry.rs --no-edit 2019-11-21 14:22:32 -08:00