:start
option wasn't being respected when grammar was provided as a file.Change to remove warning caused by latest version of Clojurescript, which warned about use of private var from tools.reader.
Added type hints to support native compilation under Graal.
Removed test case broken by Clojure 1.10.
ABNF parsers' string case-insensitivity can now be disabled by setting :string-ci false
.
ebnf
and abnf
combinators now support an optional :string-ci
argument, which overrides the default case-insensitivity behavior for that input format.
Case-insensitive regexp flag on Clojurescript
Better handling for when rhizome is present in compilation environment, but not at runtime.
visualize
now supports :output-file :buffered-image
, which returns a java.awt.image.BufferedImage object.visualize
with :output-file
didn't work on rootless trees.Fixed regression in 1.4.4 involving parsers based off of URIs.
defparser now supports the full range of relevant parser options.
add-line-and-column-info-to-metadata
in the instaparse.core namespace.Improved compatibility with boot, which allows having multiple versions of Clojure on the classpath, by making change to string-reader which needs to be aware of what version of Clojure it is running due to a breaking change in Clojure 1.7.
Fixed bug with the way failure messages were printed in certain cases.
In 1.3.6, parsing of any CharSequence was introduced, however, the error messages for failed parses weren't printing properly. This has been fixed.
1.4.0 uses a more robust algorithm for handling nested negative lookaheads, in response to a bug report where the existing mechanism produced incorrect parses (in addition to the correct parse) for a very unusual case.
:trace true
. The first time you use this flag, it triggers a
recompilation of the code with additional tracing and profiling steps.
To restore the code to its non-instrumented form, call (insta/disable-tracing!)
.Fixed bug with transform
on hiccup data structures with numbers or other atomic data as leaves.
Fixed bug with character concatenation support in ABNF grammar
Made two changes to make it possible to use instaparse on Google App Engine.
:no-slurp true
keyword option to insta/parser
to disable URI slurping behavior, since GAE does not support slurp.:ci-string true
flag to insta/parser
.empty
on a FlattenOnDemandVector now returns [].:auto-whitespace
feature. See the Experimental Features Document for more details.span
function returns substring indexes into the parsed text for a portion of the parse tree.visualize
function draws the parse tree, using rhizome and graphviz if installed.:optimize :memory
flag that, for suitable parsers, will perform the parsing in discrete chunks, using less memory.(my-parser text :unhide :tags)
- reveals tags, i.e., <>
applied on the left-hand sides of rules.(my-parser text :unhide :content)
- reveals content hidden on the right-hand side of rules with <>
(my-parser text :unhide :all)
- reveals both tags and content.:failure
, but instead is tagged with :instaparse/failure
.ebnf
combinator to the instaparse/combinators
namespace. This new combinator converts string specifications to the combinator-built equivalent. See combinator section of the updated tutorial for details.:input-format :abnf
for ABNF parser syntax.
abnf
-- converts ABNF string fragments to combinators.string-ci
-- case-insensitive strings.rep
-- between m and n repetitions.set-default-input-format!
-- initially defaults to :ebnfCan you improve this documentation? These fine people already did:
Mark Engelberg & Alex EngelbergEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close