|
From: john s. <sk...@us...> - 2015-03-30 08:03:12
|
On 30/03/2015, at 1:24 PM, Ryan wrote:
> find . -name \*.flx -o -name \*.fdoc -exec sed -i 's/\?([A-Za-z][A-Za-z0-9_]*)/\1/' {} \;
>
> Does it all in-place, though.
And only allows glob matches on filenames ... enuf for this case though.
BTW: WARNING.
When converting code to the new format BEWARE:
union X = | NIL | A of X*X;
match x with
| A (_, NIL) => ...
..
This won't work as you might expect because in that pattern NIL is a variable.
Easy to miss. You have to write
| A (_, #NIL) => ..
to tell the parser the NIL is a type constructor.
--
john skaller
sk...@us...
http://felix-lang.org
|