Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Parser

Tutorials

  • Building Language Front-Ends
  • Inside CodeAnalysis - How CodeStructure Parses C
  • Design and Compilation Strategy
  • Implementing the LaTeX Math Parser
  • MaTeX Comparison Showcase
  • The Parser Landscape - a Survey of What Exists Today
  • The Parser Zoo - language front-ends over a shared algebra
  • Parsing BNF Grammars (and bootstrapping a TPTP parser)
  • Parsing GrammarRules Locally
  • A Markdown Inline Parser in Parser Combinators
  • ParsingOpenQASM
  • Parsing TPTP, Auto-Generated from the Published BNF
  • PrattVsPEG
  • The Wolfram Box Typesetting Reference

Guides

  • Parsing in the Wolfram Language

Symbols

  • ASTAddSource
  • ASTAlgebra
  • ASTContainer
  • ASTLeafQ
  • ASTNodeQ
  • ASTStripSource
  • BinaryNode
  • BrainfuckAST
  • BrainfuckGrammar
  • BrainfuckRun
  • BrainfuckSemantic
  • CalculatorAST
  • CalculatorEval
  • CalculatorGrammar
  • CalculatorSemantic
  • CallNode
  • ContainerNode
  • EBNFParse
  • EBNFRules
  • ErrorNode
  • ExportLaTeX
  • GroupNode
  • InfixNode
  • JSONAST
  • JSONGrammar
  • JSONImport
  • JSONSemantic
  • LambdaAST
  • LambdaEval
  • LambdaGrammar
  • LambdaSemantic
  • LaTeXMathParse
  • LaTeXMathParser
  • LaTeXMathStyle
  • LeafNode
  • LispAST
  • LispGrammar
  • LispRead
  • LispSemantic
  • LispSymbol
  • MarkdownInlineParse
  • MarkdownInlineParser
  • MarkdownParse
  • MarkdownParser
  • ParseAction
  • ParseBetween
  • ParseChainLeft
  • ParseChainRight
  • ParseCharacter
  • ParseChoiceLongest
  • ParseChoice
  • ParseFail
  • ParseLiteral
  • ParseLookahead
  • ParseMany
  • Parse
  • ParseNotFollowedBy
  • ParseOperatorTable
  • ParseOptional
  • ParsePartial
  • ParsePosition
  • ParserCombinator
  • ParserCombinatorQ
  • ParserCompile
  • ParseRecursive
  • ParseRegex
  • ParseSepBy1
  • ParseSepBy
  • ParseSequence
  • ParseSome
  • ParseSucceed
  • ParseTry
  • PostfixNode
  • PrefixNode
  • RecCell
  • RecRef
  • SetRec
  • SpannedToken
  • TernaryNode
  • ToCodeParser
  • TPTPExport
  • TPTPImport

Overviews

  • WolframParser
Parsing in the Wolfram Language
Wolfram`Parser`
is a Parsec-style parser combinator library: every parser is a
ParserCombinator
value built from
Parse*
constructors, runnable directly via
Parse
or compiled with
ParserCompile
.
GrammarRules
declarations are lowered to the same combinators (no
CloudDeploy
round-trip).
LaTeXMathParse
is a working LaTeX-math parser built on the combinator core;
EBNFParse
reads a BNF grammar file into a parser map.
Running a parser
Parse
apply a parser to an input; returns its value or a
Failure
ParsePartial
return
{result,leftover-suffix}
instead of requiring whole-input match
ParserCompile
materialize the
FunctionCompile
d form
The wrapper
ParserCombinator
the single computable head every parser is represented as
ParserCombinatorQ
test whether an expression is a
ParserCombinator
Terminals
ParseLiteral
match an exact string
ParseCharacter
match a single character against a character class
ParseSucceed
always succeed with the given value, consuming nothing
ParseFail
always fail with the given message
ParseRegex
match the input against a regular expression
Composition
ParseSequence
each parser in order
ParseChoice
the first that matches, PEG-ordered
ParseChoiceLongest
every alternative, returning the longest match (POSIX-style)
ParseBetween
open, then
p
, then close; the result is
p
's
ParseSepBy
zero or more
p
separated by
sep
ParseSepBy1
one or more
p
separated by
sep
ParseChainLeft
left-associative operator chain
ParseChainRight
right-associative operator chain
Repetition
ParseMany
zero or more
ParseSome
one or more
ParseOptional
zero or one
Lookahead / backtracking
ParseLookahead
succeed iff
p
would match, consuming nothing
ParseNotFollowedBy
succeed iff
p
would not match, consuming nothing
ParseTry
backtrack on failure even after partial consumption
Action / recursion
ParseAction
apply a function to a parser's result
ParseRecursive
defer the lookup of a parser definition until parse time
Diagnostics
Failure["ParseError", ...]
— structured failure with
"Position"
,
"Expected"
,
"Found"
keys
LaTeX math
LaTeXMathParse
parse LaTeX math source into a tree of Wolfram boxes
LaTeXMathParser
the reusable parser object that
LaTeXMathParse
runs
LaTeXMathStyle
restyle parsed math boxes into a Computer-Modern math font
BNF & TPTP grammars
EBNFParse
read a BNF grammar (a string or
File
[path]
) and return an
Association
[name->ParserCombinator]
EBNFRules
return the unlowered list of
EBNFRule
[name,kind,body]
records
TPTPImport
import TPTP theorem-prover formulas (FOF / CNF / THF) or an SZS derivation
TPTPExport
render an SZS-output derivation back to TPTP text
Markdown
MarkdownParse
parse a markdown document into a block AST (headings, lists, fences, prose)
MarkdownParser
the reusable document-parser object behind
MarkdownParse
MarkdownInlineParse
parse one paragraph's inline spans (emphasis, code, links, math)
MarkdownInlineParser
the reusable inline-parser object behind
MarkdownInlineParse
TechNotes
▪
ParserLandscape
▪
DesignAndCompilationStrategy
▪
ParsingGrammarRules
▪
LaTeXMathParserImplementation
▪
ParsingBNFGrammars
▪
ParsingTPTP
▪
ParserZoo
RelatedGuides
▪
StringManipulation
▪
Parser combinator (Wikipedia)
▪
Parsing expression grammar (Wikipedia)
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com