Hi all,<br clear="all"><br>Following on from some macro pattern stuff I&#39;ve brought up before, I was wondering whether it&#39;s possible to extend the syntax of macro patterns using Scheme macros? Specifically, is it possible to create your own macro syntax that would allow ellipses in places other than tail position?<br>
<br>For example, there&#39;s no reason the pattern (_ (name value) ... expr) could not be made to work, since &#39;expr&#39; is a less specific matcher than &#39;(name value)&#39;. &#39;(name value) ...&#39; would consume input expressions until it hit a non-list expression, then &#39;expr&#39; would take over. So firstly, are there counterexamples to prove this wouldn&#39;t work, and if it would work, can you implement it using Scheme macros themselves? I&#39;d also like to do something similar with keywords, so that for example (_ expr ... stop stmt ...) would work if &#39;stop&#39; is a keyword for the syntax.<br>
<br><br>-- <br>James Coglan<br><a href="http://github.com/jcoglan">http://github.com/jcoglan</a><br>