<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Parser</id>
	<title>Parser - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Parser"/>
	<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Parser&amp;action=history"/>
	<updated>2026-12-03T02:59:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Parser&amp;diff=70025&amp;oldid=prev</id>
		<title>Andrew Branscom: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Parser&amp;diff=70025&amp;oldid=prev"/>
		<updated>2025-02-16T20:49:38Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:49, 16 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Parser&amp;diff=70024&amp;oldid=prev</id>
		<title>Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Parser&amp;diff=70024&amp;oldid=prev"/>
		<updated>2024-06-03T05:11:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:11, 3 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Parser&amp;diff=70023&amp;oldid=prev</id>
		<title>sierraw&gt;Andrew Branscom: /*  Also See */</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Parser&amp;diff=70023&amp;oldid=prev"/>
		<updated>2022-06-18T15:32:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Also See&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div align=&amp;quot;center&amp;quot; style=&amp;quot;font-size: 22pt&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;The Parser&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
{{TechStub}}&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; Description ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;Quote&amp;quot;&amp;gt;&lt;br /&gt;
{{Quote|Attrib = Wikipedia&amp;lt;ref&amp;gt;https://en.wikipedia.org/wiki/Parsing#Parser&amp;lt;/ref&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;parser&amp;#039;&amp;#039;&amp;#039; is a software component that takes input data (frequently text) and builds a [[w:data structure]] – often some kind of [[w:parse tree]], [[w:abstract syntax tree]] or other hierarchical structure, giving a structural representation of the input while checking for correct syntax. The parsing may be preceded or followed by other steps, or these may be combined into a single step. The parser is often preceded by a separate [[w:Lexical analysis|lexical analyser]], which creates tokens from the sequence of input characters; alternatively, these can be combined in [[w:scannerless parsing]]. Parsers may be programmed by hand or may be automatically or semi-automatically generated by a [[w:parser generator]]. Parsing is complementary to [[w:templating language|templating]], which produces formatted &amp;#039;&amp;#039;output.&amp;#039;&amp;#039; These may be applied to different domains, but often appear together, such as the [[w:scanf]]/[[w:printf]] pair, or the input (front end parsing) and output (back end code generation) stages of a compiler.&lt;br /&gt;
&lt;br /&gt;
The input to a parser is often text in some [[w:computer language]], but may also be text in a natural language or less structured textual data, in which case generally only certain parts of the text are extracted, rather than a parse tree being constructed. Parsers range from very simple functions such as [[w:scanf]], to complex programs such as the frontend of a [[w:C++ compiler]] or the [[w:HTML]] parser of a [[w:web browser]]. An important class of simple parsing is done using [[w:regular expression]]s, in which a group of regular expressions defines a [[w:regular language]] and a regular expression engine automatically generating a parser for that language, allowing [[w:pattern matching]] and extraction of text. In other contexts regular expressions are instead used prior to parsing, as the lexing step whose output is then used by the parser.&lt;br /&gt;
&lt;br /&gt;
The use of parsers varies by input. In the case of data languages, a parser is often found as the file reading facility of a program, such as reading in HTML or [[w:XML]] text; these examples are [[w:markup language]]s. In the case of [[w:programming language]]s, a parser is a component of a [[w:compiler]] or [[w:Interpreter (computing)|interpreter]], which parses the [[w:source code]] of a [[w:computer programming language]] to create some form of internal representation; the parser is a key step in the [[w:compiler frontend]]. Programming languages tend to be specified in terms of a [[w:deterministic context-free grammar]] because fast and efficient parsers can be written for them. For compilers, the parsing itself can be done in one pass or multiple passes – see [[w:one-pass compiler]] and [[w:multi-pass compiler]].&lt;br /&gt;
&lt;br /&gt;
The implied disadvantages of a one-pass compiler can largely be overcome by adding [[w:Relocation (computing)|fix-ups]], where provision is made for code relocation during the forward pass, and the fix-ups are applied backwards when the current program segment has been recognized as having been completed. An example where such a fix-up mechanism would be useful would be a forward GOTO statement, where the target of the GOTO is unknown until the program segment is completed. In this case, the application of the fix-up would be delayed until the target of the GOTO was recognized. Conversely, a backward GOTO does not require a fix-up, as the location will already be known.&lt;br /&gt;
&lt;br /&gt;
Context-free grammars are limited in the extent to which they can express all of the requirements of a language. Informally, the reason is that the memory of such a language is limited. The grammar cannot remember the presence of a construct over an arbitrarily long input; this is necessary for a language in which, for example, a name must be declared before it may be referenced. More powerful grammars that can express this constraint, however, cannot be parsed efficiently. Thus, it is a common strategy to create a relaxed parser for a context-free grammar which accepts a superset of the desired language constructs (that is, it accepts some invalid constructs); later, the unwanted constructs can be filtered out at the [[w:Semantic analysis (compilers)|semantic analysis]] (contextual analysis) step.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; Also See ==&lt;br /&gt;
&lt;br /&gt;
* [[w:https://en.wikipedia.org/wiki/Parsing#Parser|The Parser on Wikipedia]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[Category:Game Design]]&lt;br /&gt;
[[Category:AI]]&lt;br /&gt;
[[Category:Interfaces]]&lt;br /&gt;
[[Category:User Input]]&lt;/div&gt;</summary>
		<author><name>sierraw&gt;Andrew Branscom</name></author>
	</entry>
</feed>