Rosie Pattern Language (RPL) and the Rosie Pattern Engine have MOVED!
ci
macro will now operate on character sets as well as literals, making them all case insensitive. (Note that ci
continues to operate only on its argument, e.g. ci:[A-Z]
converts [A-Z]
into a case insensitive version. It will not change patterns already bound to names. I.e. ci:foo
is the same as foo
.)subs
now returns an empty string when there is a match but it has no sub-matches.librosie
documentation has been posted on the Rosie blog. If anything is not clear, let us know! (Open an issue, or discuss on reddit.)trace
function now takes a "style" option (aka "encoder") which can be full, condensed, or json.trace
command in the CLI uses '-o' to specify the trace style.-o color
are now visible via the config
command (CLI) and the config()
API.-o
option after the command (match, grep, or trace).num.int
pattern was modified in a bad way in the last beta. It has been fixed.librosie
documentation has been posted on the Rosie blog. If anything is not clear, let us know! (Open an issue, or discuss on reddit.)num.float
and num.int
patterns now accepts all valid JSON floats and ints, respectively. They also accept numbers like "+1" and "02" which are not valid JSON.num
that have fractional parts will no longer separate out just the fractional part into a submatch labeled frac
.librosie
documentation has been posted on the Rosie blog. If anything is not clear, let us know! (Open an issue, or discuss on reddit.)librosie
documentation is still in the works. If anything is not clear, let us know! (Open an issue.)rosie.engine()
has been removed. By default, rosie.py will load librosie
by looking first in the same directory as rosie.py. If that fails, it will load from the system location (e.g. /usr/local/lib).librosie
is loaded, e.g. if you have multiple rosie installations, then you must call rosie.load(path)
before creating any engines.path
argument to rosie.load()
can be a string or rosie.librosie_local
or rosie.librosie_system
:
librosie
.librosie_local
is equivalent to '//' (load from rosie.py directory).librosie_system
is equivalent to '' (the empty string) or None.set_librosie_dir()
from beta-6 has been removed. We apologize for any confusion.librosie
documentation is still in the works. If anything is not clear, let us know! (Open an issue.)rosie.engine()
has been removed. To select how rosie.py finds the librosie
library, call rosie.set_librosie_dir
. If you don't call rosie.set_librosie_dir
, the default is to follow the system load path, which typically looks in places like /usr/lib
and /usr/local/lib
.librosie
, each with their own engine (as required), and they were processing the same file, there was an unfortunate interaction regarding file locking.librosie
documentation is still in the works. If anything is not clear, let us know! (Open an issue.)rcfile
processing are now returned by librosie to the calling programlibrosie
documentation is still in the works. If anything is not clear, let us know! (Open an issue.)librosie
documentation is still in the works. If anything is not clear, let us know! (Open an issue.)Small bug fixes, but an important one that fixes librosie for Python3 users.
librosie
documentation is still in the works. If anything is not clear, let us know! (Open an issue.)bool
that indicates a match or not, but returns no other data. Not useful at the command line, but useful from programs using librosie
.librosie
from python.librosie
documentation is still in the works. If anything is not clear, let us know! (Open an issue.)