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

FunctionalParsers

Guides

  • Functional parsers

Tech Notes

  • Интерпретатори на желания за храни
  • Food cravings grammar and interpreters
  • Парсване на имена на цели числа
  • Integer names parsing

Symbols

  • AddParserModifier
  • EBNFAlternativesInterpreter
  • EBNFAlternatives
  • EBNFContextRules
  • EBNF
  • EBNFNonTerminalInterpreter
  • EBNFNonTerminal
  • EBNFOptionInterpreter
  • EBNFOption
  • EBNFRepetitionInterpreter
  • EBNFRepetition
  • EBNFRuleInterpreter
  • EBNFRule
  • EBNFSequenceInterpreter
  • EBNFSequence
  • EBNFTerminalInterpreter
  • EBNFTerminal
  • GenerateParsersFromEBNF
  • GrammarNormalize
  • GrammarRandomSentences
  • InterpretWithContext
  • ParseAlternativeComposition
  • ParseApply
  • ParseBracketed
  • ParseChain1Left
  • ParseChainLeft
  • ParseChainRight
  • ParseChoice
  • ParseComposeWithResults
  • ParseCurlyBracketed
  • ParseEBNF
  • ParseEpsilon
  • ParseFail
  • ParseFuzzySymbol
  • ParseJust
  • ParseListOf
  • ParseMany1
  • ParseManyByBranching
  • ParseMany
  • ParseModify
  • ParseOption1
  • ParseOption
  • ParsePack
  • ParseParenthesized
  • ParsePredicate
  • ParseRecursiveDefinition
  • ParseSequentialComposition
  • ParseSequentialCompositionPickLeft
  • ParseSequentialCompositionPickRight
  • ParseShortest
  • ParseSome
  • ParseSpaces
  • ParseSucceed
  • ParseSymbol
  • ParseToEBNFTokens
  • ParseToken
  • ParseToTokens
  • ParsingTestTable
  • SetParserModifier
  • ToTokens
AntonAntonov`FunctionalParsers`
ParseSymbol
​
ParseSymbol
[s]
parses a specified symbol s.
​
Examples  
(1)
Basic Examples  
(1)
Define a parser:
In[1]:=
p=
ParseSymbol
["one"]⊕
ParseSymbol
["two"]⊕
ParseSymbol
["three"]⊗
ParseSymbol
["thousand"]⊕
ParseSymbol
["million"];
Test the parser using sentences with correct and incorrect spelling:
In[2]:=
ParsingTestTable
[p,{"one million","one milion","three thousand","third million"}]
Out[2]=
#
Statement
Parser output
1
one million
{{{},{one,million}}}
2
one milion
{}
3
three thousand
{{{},{three,thousand}}}
4
third million
{}
SeeAlso
ParseFuzzySymbol
 
▪
ParsePredicate
RelatedGuides
▪
Functional parsers
""

© 2025 Wolfram. All rights reserved.

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