Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
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
Create a Paclet
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
Wolfram`Parser`
M
a
r
k
d
o
w
n
P
a
r
s
e
r
M
a
r
k
d
o
w
n
P
a
r
s
e
r
i
s
t
h
e
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
i
m
p
l
e
m
e
n
t
i
n
g
t
h
e
b
l
o
c
k
-
l
e
v
e
l
m
a
r
k
d
o
w
n
-
d
o
c
u
m
e
n
t
g
r
a
m
m
a
r
—
t
h
e
r
e
u
s
a
b
l
e
p
a
r
s
e
r
o
b
j
e
c
t
b
e
h
i
n
d
M
a
r
k
d
o
w
n
P
a
r
s
e
.
P
a
r
s
e
[
M
a
r
k
d
o
w
n
P
a
r
s
e
r
,
s
o
u
r
c
e
]
r
u
n
s
t
h
a
t
g
r
a
m
m
a
r
o
n
t
h
e
S
t
r
i
n
g
s
o
u
r
c
e
,
r
e
t
u
r
n
i
n
g
t
h
e
s
a
m
e
d
o
c
u
m
e
n
t
A
s
s
o
c
i
a
t
i
o
n
a
s
M
a
r
k
d
o
w
n
P
a
r
s
e
—
t
h
e
f
r
o
n
t
m
a
t
t
e
r
u
n
d
e
r
"
M
e
t
a
d
a
t
a
"
a
n
d
t
h
e
t
y
p
e
d
b
l
o
c
k
l
i
s
t
u
n
d
e
r
"
B
l
o
c
k
s
"
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
▪
M
a
r
k
d
o
w
n
P
a
r
s
e
r
is an ordinary
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
value:
H
e
a
d
[
M
a
r
k
d
o
w
n
P
a
r
s
e
r
]
is
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
and its combinator type is
"
A
c
t
i
o
n
"
(a
P
a
r
s
e
A
c
t
i
o
n
wrapping the block grammar).
▪
The grammar is optional frontmatter followed by a sequence of blocks — heading, code fence, thematic break, or prose — the same block shapes
M
a
r
k
d
o
w
n
P
a
r
s
e
documents.
▪
Being a
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
, it is callable via a
S
u
b
V
a
l
u
e
s
rule:
M
a
r
k
d
o
w
n
P
a
r
s
e
r
[
s
o
u
r
c
e
]
is
P
a
r
s
e
[
M
a
r
k
d
o
w
n
P
a
r
s
e
r
,
s
o
u
r
c
e
]
.
▪
One object serves any number of inputs. Bind it once and run it repeatedly, rather than reconstructing a parser per call.
▪
As a
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
it can be composed with the
P
a
r
s
e
*
constructors and lowered with
P
a
r
s
e
r
C
o
m
p
i
l
e
like any other parser.
▪
The line-based grammar expects
source
to end in a newline;
M
a
r
k
d
o
w
n
P
a
r
s
e
r
does not add one.
M
a
r
k
d
o
w
n
P
a
r
s
e
is the one-shot wrapper that appends a trailing newline (if missing) and then calls
P
a
r
s
e
, so it accepts input the raw object would reject.
▪
With a trailing newline present,
P
a
r
s
e
[
M
a
r
k
d
o
w
n
P
a
r
s
e
r
,
s
o
u
r
c
e
]
and
M
a
r
k
d
o
w
n
P
a
r
s
e
[
s
o
u
r
c
e
]
return the identical
A
s
s
o
c
i
a
t
i
o
n
.
Examples
(
6
)
Basic Examples
(
1
)
M
a
r
k
d
o
w
n
P
a
r
s
e
r
is a parser object — a
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
— not a function to call directly:
I
n
[
1
]
:
=
M
a
r
k
d
o
w
n
P
a
r
s
e
r
O
u
t
[
1
]
=
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
T
y
p
e
:
A
c
t
i
o
n
A
r
i
t
y
:
2
C
o
m
p
i
l
e
d
:
F
a
l
s
e
Its head is
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
, the wrapper every parser in the library normalises to:
I
n
[
2
]
:
=
H
e
a
d
M
a
r
k
d
o
w
n
P
a
r
s
e
r
O
u
t
[
2
]
=
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
Run it with
P
a
r
s
e
against a document string ending in a newline:
I
n
[
3
]
:
=
P
a
r
s
e
M
a
r
k
d
o
w
n
P
a
r
s
e
r
,
"
#
T
i
t
l
e
"
O
u
t
[
3
]
=
M
e
t
a
d
a
t
a
,
B
l
o
c
k
s
{
T
y
p
e
H
e
a
d
i
n
g
,
L
e
v
e
l
1
,
T
e
x
t
T
i
t
l
e
}
S
c
o
p
e
(
2
)
P
r
o
p
e
r
t
i
e
s
&
R
e
l
a
t
i
o
n
s
(
2
)
P
o
s
s
i
b
l
e
I
s
s
u
e
s
(
1
)
S
e
e
A
l
s
o
M
a
r
k
d
o
w
n
P
a
r
s
e
▪
M
a
r
k
d
o
w
n
I
n
l
i
n
e
P
a
r
s
e
r
▪
M
a
r
k
d
o
w
n
I
n
l
i
n
e
P
a
r
s
e
▪
P
a
r
s
e
▪
P
a
r
s
e
r
C
o
m
b
i
n
a
t
o
r
▪
P
a
r
s
e
r
C
o
m
p
i
l
e
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
P
a
r
s
i
n
g
i
n
t
h
e
W
o
l
f
r
a
m
L
a
n
g
u
a
g
e
"
"