Re: With the Macrame macro system, Perl may now be a Lisp.
Cute experiment, but I REALLY hope nobody tries releasing useful modules to CPAN that depend on this... On Nov 29, 2007 9:51 PM, David Nicol [EMAIL PROTECTED] wrote: Macrame 0.08 finally passes a variety of tests and has been uploaded. Please harangue it via rt.cpan.org.
Re: With the Macrame macro system, Perl may now be a Lisp.
On Dec 6, 2007 6:23 PM, Bill Ward [EMAIL PROTECTED] wrote: Cute experiment, but I REALLY hope nobody tries releasing useful modules to CPAN that depend on this... Thank you After it has line number support it will be more practically useful. I'm sort of stuck on how much records of line numbers of expanded rewrites to keep and how to encode them into the filename portion of the #line comment. imagine: #line 1000 fileF.pl use Macrame; # line comments apply to the next line; this is line 1000 macro cheddar {cheese} warn cheddar; macro warn_wisconsin { warn cheddar} warn_wisconsin; __END__ the easiest thing is to keep line number information that is available during lexing and output the line number whenever it changes in the stringification: #line 1002 fileF.pl warn cheese; #line 1003 warn cheese; __END__ next tricky is to have an macros inherit their line numbers from wherever they are invoked, giving #line 1002 fileF.pl warn cheese; #line 1004 warn cheese; __END__ even if the warn_wisconsin macro is several lines long is it worth the trouble to have warnings inside macros show a full expansion history as a debugging aid? That's the current goal for the next release, with a history syntax of appending something to the filename portion of the eventual comment: #line 1002 fileF.pl warn cheese; #line 1004 fileF.pl:1003 warn cheese; __END__ when macros start appearing in different files from where they are expanded, the debugging comments will start looking something like #line 765 applicaiton.pl:maclib.pm:8970:234:basic_macros.pm:22 -- Common sense has prevailed
[Request] File::Wordlist
Dear really-really-lazyweb, Would someone please create a CPAN module that finds a wordlist on the local computer in a cross-platform friendly manner, a la File::HomeDir? For typical unix systems, that would be: sub find_wordlist { return '/usr/share/dict/words'; } But it could be smarter and look for, say, /usr/share/dict/scrabble- english first. For Windows, maybe it would look for MS Office or OpenOffice files first. For extra points, it could even parse those files if their not just word + newline. For double extra points, it could download additional dictionaries from the web (ispell, etc). TIA, Chris ;-) References: http://www.nntp.perl.org/group/perl.fwp/2007/12/msg4038.html http://en.wikipedia.org/wiki/Words_(Unix) http://packages.debian.org/sarge/all/scrabble/filelist http://packages.ubuntu.com/dapper/virtual/wordlist http://fmg-www.cs.ucla.edu/geoff/ispell-dictionaries.html http://www.gutenberg.org/etext/3201 Paths: /usr/dict/words /usr/share/dict/* /Applications/Firefox.app/Contents/MacOS/dictionaries/en-US.dic /Library/Dictionaries/New\ Oxford\ American\ Dictionary.dict/ Contents/dict_body /sw/share/aspell/*