<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rc/parse.y, branch master</title>
<subtitle>Byron Rakitzis' rc(1) port, with a few modifications
</subtitle>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/'/>
<entry>
<title>parse.y rc.1: support ifs-list with single backtick</title>
<updated>2022-01-02T13:36:00+00:00</updated>
<author>
<name>hhvn</name>
<email>dev@hhvn.uk</email>
</author>
<published>2022-01-02T13:36:00+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=ade87e07baf2b5315b9e56dadfb26117cc567a95'/>
<id>ade87e07baf2b5315b9e56dadfb26117cc567a95</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Silence parser conflicts caused by IF NOT</title>
<updated>2018-05-01T19:09:32+00:00</updated>
<author>
<name>Bert Münnich</name>
<email>ber.t@posteo.de</email>
</author>
<published>2018-05-01T19:08:37+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=7893cd8502b900941e57a041072b9ca524470d84'/>
<id>7893cd8502b900941e57a041072b9ca524470d84</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into ifnot</title>
<updated>2018-03-26T17:21:22+00:00</updated>
<author>
<name>Toby Goodwin</name>
<email>toby@paccrat.org</email>
</author>
<published>2018-03-26T17:21:22+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=0a1ecd59e87e2a3f394be2bcf9bf14d2eb293fc8'/>
<id>0a1ecd59e87e2a3f394be2bcf9bf14d2eb293fc8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>whitespace cleanup</title>
<updated>2018-03-20T21:59:14+00:00</updated>
<author>
<name>Toby Goodwin</name>
<email>toby@paccrat.org</email>
</author>
<published>2018-03-20T21:58:03+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=47151e4647b8decd77bb65c4fbe0dadb16ae79a8'/>
<id>47151e4647b8decd77bb65c4fbe0dadb16ae79a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into ifnot</title>
<updated>2018-03-05T07:13:14+00:00</updated>
<author>
<name>Toby Goodwin</name>
<email>toby@paccrat.org</email>
</author>
<published>2018-03-05T07:13:14+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=1128baa58acaff32e4538d5878b916fba091c574'/>
<id>1128baa58acaff32e4538d5878b916fba091c574</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Unify bodies of if and if-else statements</title>
<updated>2018-03-02T20:15:46+00:00</updated>
<author>
<name>Bert Münnich</name>
<email>ber.t@posteo.de</email>
</author>
<published>2018-03-02T20:04:06+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=280d57b40b71c16b242dab52286592efdf2e3356'/>
<id>280d57b40b71c16b242dab52286592efdf2e3356</id>
<content type='text'>
Fixes issue #31 of rakitzis/rc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes issue #31 of rakitzis/rc.
</pre>
</div>
</content>
</entry>
<entry>
<title>wip</title>
<updated>2018-02-09T06:34:34+00:00</updated>
<author>
<name>Toby Goodwin</name>
<email>toby@paccrat.org</email>
</author>
<published>2018-02-09T06:34:34+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=5966ab2ca2632c5bed9815def1add4859beececa'/>
<id>5966ab2ca2632c5bed9815def1add4859beececa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix prefix redir precedence bug, github #33</title>
<updated>2017-06-23T21:29:00+00:00</updated>
<author>
<name>Toby Goodwin</name>
<email>toby@paccrat.org</email>
</author>
<published>2017-06-23T21:29:00+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=d2a398257626faf73fd7a5326b31bbc3f613e3da'/>
<id>d2a398257626faf73fd7a5326b31bbc3f613e3da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Parse equals sign as keyword</title>
<updated>2017-04-17T21:01:02+00:00</updated>
<author>
<name>Bert Münnich</name>
<email>ber.t@posteo.de</email>
</author>
<published>2016-02-27T19:52:33+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=d0ee32e585437b76f095379ec84fd753a5d30a3c'/>
<id>d0ee32e585437b76f095379ec84fd753a5d30a3c</id>
<content type='text'>
The parser treats unexpected keyword tokens (eg. if, while, ~) as literals and
not as syntax errors. It does not do this for the equals sign, but it could, as
it only has a special meaning at the beginning of a command, much like the
keywords. Doing this allows one to write commands like this:

    dd if'='/dev/zero of'='data bs'='1024 count'='1

without the quotes around the equals signs. All shells from the Bourne family
do this.

For this to work, the lexer must not automatically terminate words at equals
signs, instead it has to generate a free caret around it like for the twiddle
and other such special characters.

In the parser's grammar we need to get rid of the left recursion in the rules
for 'simple' to turn the reduce/reduce conflict at 'first' on '=' (empty -&gt;
'optcaret' or 'first' -&gt; 'simple') into a shift/reduce conflict, which then
can be solved with precedence/associativity so that the reduction of the
empty 'optcaret' wins over shifting '='.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The parser treats unexpected keyword tokens (eg. if, while, ~) as literals and
not as syntax errors. It does not do this for the equals sign, but it could, as
it only has a special meaning at the beginning of a command, much like the
keywords. Doing this allows one to write commands like this:

    dd if'='/dev/zero of'='data bs'='1024 count'='1

without the quotes around the equals signs. All shells from the Bourne family
do this.

For this to work, the lexer must not automatically terminate words at equals
signs, instead it has to generate a free caret around it like for the twiddle
and other such special characters.

In the parser's grammar we need to get rid of the left recursion in the rules
for 'simple' to turn the reduce/reduce conflict at 'first' on '=' (empty -&gt;
'optcaret' or 'first' -&gt; 'simple') into a shift/reduce conflict, which then
can be solved with precedence/associativity so that the reduction of the
empty 'optcaret' wins over shifting '='.
</pre>
</div>
</content>
</entry>
<entry>
<title>  Bug: more wrongly ordered header file includes (thanks Callum</title>
<updated>2015-05-16T20:23:21+00:00</updated>
<author>
<name>tjg</name>
<email>tjg</email>
</author>
<published>2001-11-06T16:55:11+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/rc/commit/?id=c18e056190765f36a8801838184adc080ce0820f'/>
<id>c18e056190765f36a8801838184adc080ce0820f</id>
<content type='text'>
  Gibson).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Gibson).
</pre>
</div>
</content>
</entry>
</feed>
