|
HashBang - Write your own language interpreters |
HashBang - Write your own language interpreters
#!/usr/bin/foo
This CPAN distribution will install a binary program on your system
called 'hashbang'. You can use this program to write your own
hashbang style interpreters in Perl. Let's say you've implemented a
language called foo in a file called foo.pl. Put the file in the
same directory as the hashbang executable. And then create a symbolic
link from foo to hashbang. Like this:
cd /usr/bin
cp ~/foo.pl .
ln -fs hashbang foo
The CPAN distribution, HashBang-ParrotScript makes use of HashBang to create a simple interpreter for the Parrot Assembler language.
Brian Ingerson <ingy@cpan.org>
Hugo van der Sanden - helped with the initial C code
Norman Nunley - Helped me develop this over a Mexican dinner in San Diego
Copyright (c) 2001, 2002. Brian Ingerson. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
|
HashBang - Write your own language interpreters |