Liking cljdoc? Tell your friends :D

clj-antlr.core

Parser frontend.

Parser frontend.
raw docstring

parseclj

(parse parser input)
(parse parser opts input)

Parses a string, reader, or inputstream using the given parser, and returns a data structure. If options are passed, override the options given at parser construction.

Parses a string, reader, or inputstream using the given parser, and returns
a data structure. If options are passed, override the options given at parser
construction.
sourceraw docstring

parse*clj

(parse* parser opts input)

Helper for parse

Helper for parse
sourceraw docstring

parserclj

(parser filename)
(parser filename opts)
(parser lexer-filename parser-filename opts)

Constructs a new parser. Takes a filename for an Antlr v4 grammar. Options:

:format The parse tree to generate. One of: :sexpr (default) Nested lists, node names first :raw Equivalent to identity <any function> Takes a map of {:tree, :parser, etc}

:root The string name of the rule to begin parsing. Defaults to the first rule in the grammar.

:throw? If truthy, parse errors will be thrown. Defaults true.

:case-sensitive? Whether the lexer must match the exact case of characters. Defaults true. If false, the tokenizer will only receive lowercase characters. The generated parse tree will still retain the case of the original text.

Constructs a new parser. Takes a filename for an Antlr v4 grammar. Options:

:format           The parse tree to generate. One of:
                    :sexpr (default)  Nested lists, node names first
                    :raw              Equivalent to identity
                    <any function>    Takes a map of {:tree, :parser, etc}

:root             The string name of the rule to begin parsing. Defaults to
                  the first rule in the grammar.

:throw?           If truthy, parse errors will be thrown. Defaults true.

:case-sensitive?  Whether the lexer must match the exact case of characters.
                  Defaults true. If false, the tokenizer will only receive
                  lowercase characters. The generated parse tree will still
                  retain the case of the original text.
sourceraw docstring

tokensclj

(tokens parser input)
(tokens parser opts input)

Instead of a parse tree, yields a sequence of tokens.

Instead of a parse tree, yields a sequence of tokens.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close