parser
parser — noun
1. a tool, program, or person that takes a piece of text or code and breaks it into
a tool, program, or person that takes a piece of text or code and breaks it into smaller parts so that the structure and meaning of each part can be checked.
Marcus wrote a small parser to read the JSON files his app downloaded each night.
wrote a parser to read [format]
The parser threw an error when it reached a missing comma on line 47.
the parser threw an error
Lina's research group built a parser for old Latin poetry to label every word's role in the sentence.
Most browsers include a fast HTML parser that turns the page's code into a visible layout.
Lina's Markdown parser crashed every time it hit a code block nested inside a list.
- analyzer
broader; any tool that examines data, not just for structure
- interpreter
in computing, runs the parsed code rather than just checking its shape
- lexer
narrower; splits input into tokens, which a parser then groups into structures
文法句型
a parser for [language/format]
用法筆記
Almost always refers to a piece of software in modern use; the older sense of a person who parses sentences in school grammar lessons is now rare. Often paired with the format it handles: HTML parser, JSON parser, XML parser.