mietek / epigram2

Mirror of Epigram 2, by Conor McBride, et al.
https://code.google.com/p/epigram
MIT License
48 stars 7 forks source link

Demo: one-line comment in Cochon #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When running the Epigram mode, we tend to send lines to move down in the file. 
As it happens, we sometimes send a one-line comment on our way down. 

This leads to an error while it would be rather easy to ignore the line.

Original issue reported on code.google.com by pedag...@gmail.com on 7 Sep 2010 at 11:02

GoogleCodeExporter commented 9 years ago
In pigmode, a "--.*$" is replaced by nothing. 

This is a front-end hack, to avoid hacking Cochon command tokenizer/parser 
(because it already is quite horrible).

Original comment by pedag...@gmail.com on 11 Sep 2010 at 11:22