Version 9 of parser

Updated 2013-11-30 02:06:00 by pooryorick

A parser is a routine or program that analyses the structure of some input according to a formal grammar.

Examples would be various XML parsers, a BibTeX parser, and the parser for Tcl itself.

See Also

command options
   [grammatical analysis]

   [Scripted Parsing]
Techniques for reading and writing application configuration files

Description

Almost all programs include parsers - at least if they read a file and process it to perform a (possibly useful) action. Excel, Word, OpenOffice, Photoshop and so on all contain parsers.

Now-a-days parsers are most often generated directly from grammar specifications instead of written by hand. Applications for doing so are called parser generators.

Parsers

A little Slashdot comment parser
A little XML parser
A partial APL parser
A Tcl parser in Tcl
BibTeX parser
C-header Parser
Cloverfield - Parser
LogParser
Naive Tcl parser
Operator precedence expression parser
Parse Parenthesis
Parse Quote
parseQif
parsetcl
parses Tcl scripts
Parsing an iPhoto catalog
Parsing C
Parsing Excel XLSX
parsing expressions ,by SS
a Tcl prototype for a compiler written in C to turn mathematical expressions into bytecode for a stack-based machine
Parsing HTML
Parsing ISO8601 dates and times
parsing Mac OS X preferences using the 'defaults' command
Parsing PDF
Parsing Polish notation
Parsing RFC 1036 headers
Parsing RFC2822 dates and times
Parsing SQL
Reading and parsing RFC 822 headers
Regexp HTML Attribute Parsing
   [SNMP parser]
Stephen Uhler's HTML parser in 10 lines
tmpl_parser
URL Parser
Visual Studio 2003 .sln file parser
XML Shallow Parsing with Regular Expressions
YAXMLP an XML parser