<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=User%3AClipka%2FSyntax</id>
	<title>User:Clipka/Syntax - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.povray.org/content?action=history&amp;feed=atom&amp;title=User%3AClipka%2FSyntax"/>
	<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=User:Clipka/Syntax&amp;action=history"/>
	<updated>2026-10-08T22:57:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.povray.org/content?title=User:Clipka/Syntax&amp;diff=9647&amp;oldid=prev</id>
		<title>Clipka at 17:29, 5 October 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=User:Clipka/Syntax&amp;diff=9647&amp;oldid=prev"/>
		<updated>2018-10-05T17:29:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:29, 5 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;...&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For simplicity of writing, we might use style sheets to &amp;quot;italicize&amp;quot; everything but the non-terminals, rather than use markup to explicitly italicize pretty much everything individually.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Clipka</name></author>
	</entry>
	<entry>
		<id>https://wiki.povray.org/content?title=User:Clipka/Syntax&amp;diff=9646&amp;oldid=prev</id>
		<title>Clipka: Created page with &quot;==Random ideas for an overhauled way of representing syntax==  This is what we currently have:  &lt;pre&gt; ARRAY_DECLARATION:   #declare IDENTIFIER = array[ mixed ][ INT ] INT ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.povray.org/content?title=User:Clipka/Syntax&amp;diff=9646&amp;oldid=prev"/>
		<updated>2018-10-05T17:20:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Random ideas for an overhauled way of representing syntax==  This is what we currently have:  &amp;lt;pre&amp;gt; ARRAY_DECLARATION:   #declare IDENTIFIER = array[ mixed ][ INT ]&lt;a href=&quot;/content?title=INT&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;INT (page does not exist)&quot;&gt;INT &lt;/a&gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Random ideas for an overhauled way of representing syntax==&lt;br /&gt;
&lt;br /&gt;
This is what we currently have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ARRAY_DECLARATION:&lt;br /&gt;
  #declare IDENTIFIER = array[ mixed ][ INT ][[ INT ]]..[ARRAY_INITIALIZER] |&lt;br /&gt;
  #local IDENTIFIER = array[ mixed ][ INT ][[ INT ]]..[ARRAY_INITIALIZER]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If we abandong pre-formatted text, we can use formatting to our advantage. For example, the following uses a definition list in a &amp;lt;code&amp;gt;&amp;amp;lt;div&amp;amp;gt;&amp;lt;/code&amp;gt; tag (using &amp;quot;Note&amp;quot; here but we should of course use a dedicated style class, so that we can fine-tune the style), and &amp;lt;code&amp;gt;%&amp;amp;t;code&amp;amp;gt;&amp;lt;/code&amp;gt; to mark literal text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;Note&amp;quot;&amp;gt;&lt;br /&gt;
;ARRAY_DECLARATION&lt;br /&gt;
:&amp;lt;code&amp;gt;#declare&amp;lt;/code&amp;gt; IDENTIFIER &amp;lt;code&amp;gt;= array&amp;lt;/code&amp;gt; [ &amp;lt;code&amp;gt;mixed&amp;lt;/code&amp;gt; ] &amp;lt;code&amp;gt;[&amp;lt;/code&amp;gt; INT &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; [ &amp;lt;code&amp;gt;[&amp;lt;/code&amp;gt; INT &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ].. [ ARRAY_INITIALIZER ] |&lt;br /&gt;
:&amp;lt;code&amp;gt;#local&amp;lt;/code&amp;gt; IDENTIFIER &amp;lt;code&amp;gt;= array&amp;lt;/code&amp;gt; [ &amp;lt;code&amp;gt;mixed&amp;lt;/code&amp;gt; ] &amp;lt;code&amp;gt;[&amp;lt;/code&amp;gt; INT &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; [ &amp;lt;code&amp;gt;[&amp;lt;/code&amp;gt; INT &amp;lt;code&amp;gt;]&amp;lt;/code&amp;gt; ].. [ ARRAY_INITIALIZER ]&lt;br /&gt;
;...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, to make it easier to write, we could simply use bold to indicate literal text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;Note&amp;quot;&amp;gt;&lt;br /&gt;
;ARRAY_DECLARATION&lt;br /&gt;
:'''#declare''' IDENTIFIER '''= array''' [ '''mixed''' ] '''[''' INT ''']''' [ '''[''' INT ''']''' ]... [ ARRAY_INITIALIZER ] |&lt;br /&gt;
:'''#local''' IDENTIFIER '''= array''' [ '''mixed''' ] '''[''' INT ''']''' [ '''[''' INT ''']''' ]... [ ARRAY_INITIALIZER ]&lt;br /&gt;
;...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a final example, here's using bold for literal text, italics for syntax non-terminals, and normal for everything else, while also using subscript &amp;quot;opt&amp;quot; instead of square brackets to indicate optional stuff, and subscript &amp;quot;opt...&amp;quot; to indicate optional stuff that can appear multiple times:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;Note&amp;quot;&amp;gt;&lt;br /&gt;
;''ARRAY_DECLARATION''&lt;br /&gt;
:'''#declare''' ''IDENTIFIER'' '''= array''' '''mixed'''&amp;lt;sub&amp;gt;opt&amp;lt;/sub&amp;gt; '''[''' ''INT'' ''']''' '''[''' ''INT'' ''']'''&amp;lt;sub&amp;gt;opt...&amp;lt;/sub&amp;gt; ''ARRAY_INITIALIZER''&amp;lt;sub&amp;gt;opt&amp;lt;/sub&amp;gt; |&lt;br /&gt;
:'''#local''' ''IDENTIFIER'' '''= array''' '''mixed'''&amp;lt;sub&amp;gt;opt&amp;lt;/sub&amp;gt; '''[''' ''INT'' ''']''' '''[''' ''INT'' ''']'''&amp;lt;sub&amp;gt;opt...&amp;lt;/sub&amp;gt; ''ARRAY_INITIALIZER''&amp;lt;sub&amp;gt;opt&amp;lt;/sub&amp;gt;&lt;br /&gt;
;...&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Clipka</name></author>
	</entry>
</feed>