SPUG: parsing Perl from Perl...
David Dyck
dcd at tc.fluke.com
Tue Nov 6 23:32:27 CST 2001
On Tue, 6 Nov 2001 at 20:32 -0800, dancerboy <dancerboy at strangelight.com> wrote:
> 1. A syntax-coloring script, that turns Perl source into syntax-colored HTML.
You might want to look at other editors that already do this.
(perhaps vim, elvis, and emacs )
Also look at perltidy, and maybe B::Deparse
> 2. A pre-processor that enforces slightly stricter syntax than that
> of the normal Perl compiler. (Specifically, not allowing named
> subroutines to be defined inside blocks of code.)
Look at B::Lint
The B:: modules use perl to parse the perl into intermediate code,
and then extract information from the compiled code.
There are quite a few B:: modules
B::Asmdata B::CC.3 B::Flags.3 B::Terse.3
B::Assembler B::Concise.3 B::Lint.3 B::Xref.3
B::Bblock B::Debug.3 B::Showlex.3
B::Bytecode B::Deparse.3 B::Stackobj.3
B::C B::Disassembler.3 B::Stash.3
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/
More information about the spug-list
mailing list