|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Parrot-AssemblyTokenizer/blib/lib/Parrot/AssemblyTokenizer.pm |
Parrot::AssemblyTokenizer
Tokenizes Parrot Assembly Language
use Parrot::AssemblyTokenizer;
my @tokens = Parrot::AssemblyTokenizer::tokenize( $lines_of_pasm );
=head1 METHODS
Tokenizes a scalar containing PASM ... scalar can be multiline, and it'll do The Right Thing. Returns a list of array references, that contain the token type and the token data. Tokens can be: whitespace, comment, label, operation, argument, comma, single_quoted_string, double_quoted_string.
This is not a parser. This was written as a helper module to allow me to do syntax highlighting of PASM - note its lack of caring about what type an argument is. No known bugs.
Peter Sergeant - pete@clueball.com
Copyright 2002 Peter Sergeant.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Parrot-AssemblyTokenizer/blib/lib/Parrot/AssemblyTokenizer.pm |