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
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
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
i
n
l
i
n
e
-
m
a
r
k
d
o
w
n
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
I
n
l
i
n
e
P
a
r
s
e
.
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
,
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
r
a
w
L
i
s
t
o
f
i
n
l
i
n
e
a
t
o
m
s
—
b
e
f
o
r
e
t
h
e
t
e
x
t
-
m
e
r
g
i
n
g
,
e
l
l
i
p
s
i
s
,
u
n
d
e
r
s
c
o
r
e
-
e
m
p
h
a
s
i
s
,
a
n
d
r
e
c
u
r
s
i
v
e
-
c
h
i
l
d
p
a
s
s
e
s
t
h
a
t
M
a
r
k
d
o
w
n
I
n
l
i
n
e
P
a
r
s
e
a
d
d
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
I
n
l
i
n
e
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
I
n
l
i
n
e
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
M
a
n
y
over one big
P
a
r
s
e
C
h
o
i
c
e
of the span rules, wrapped in a
P
a
r
s
e
A
c
t
i
o
n
.
▪
The raw grammar emits the atoms exactly as the
P
a
r
s
e
C
h
o
i
c
e
arms produce them: one
"
T
e
x
t
"
atom per plain character (the runs are
not
merged), and a span's
"
C
h
i
l
d
r
e
n
"
/ a link's
"
L
a
b
e
l
"
left as the raw captured
S
t
r
i
n
g
,
not
re-parsed into a child atom list.
▪
The ellipsis rewrite and the CommonMark underscore-emphasis rule are wrapper post-passes with no grammar arm, so the raw object leaves
.
.
.
as three characters and
_
e
m
_
as four literal
"
T
e
x
t
"
atoms.
▪
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
I
n
l
i
n
e
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
I
n
l
i
n
e
P
a
r
s
e
r
,
s
o
u
r
c
e
]
.
▪
The object serves any number of inputs and composes with the
P
a
r
s
e
*
constructors and
P
a
r
s
e
r
C
o
m
p
i
l
e
like any other parser.
▪
For merged text runs, recursively parsed span children, and the ellipsis / underscore-emphasis conveniences, use
M
a
r
k
d
o
w
n
I
n
l
i
n
e
P
a
r
s
e
, which wraps this object with those passes.
Examples
(
8
)
Basic Examples
(
1
)
M
a
r
k
d
o
w
n
I
n
l
i
n
e
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
I
n
l
i
n
e
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 normalises to:
I
n
[
2
]
:
=
H
e
a
d
M
a
r
k
d
o
w
n
I
n
l
i
n
e
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 raw, plain prose comes back as one
"
T
e
x
t
"
atom per character — the runs are not yet merged:
I
n
[
3
]
:
=
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
,
"
h
i
"
O
u
t
[
3
]
=
{
T
y
p
e
T
e
x
t
,
T
e
x
t
h
,
T
y
p
e
T
e
x
t
,
T
e
x
t
i
}
S
c
o
p
e
(
3
)
P
r
o
p
e
r
t
i
e
s
&
R
e
l
a
t
i
o
n
s
(
3
)
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
I
n
l
i
n
e
P
a
r
s
e
▪
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
▪
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
C
h
o
i
c
e
▪
P
a
r
s
e
A
c
t
i
o
n
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
W
o
l
f
r
a
m
P
a
r
s
e
r
"
"