Hardware::Vhdl::Lexer 1.00
Sponsored Links
Hardware::Vhdl::Lexer 1.00 Ranking & Summary
File size:
0.011 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
940
Date added:
2007-04-20
Publisher:
Michael Attenborough
Hardware::Vhdl::Lexer 1.00 description
Hardware::Vhdl::Lexer is a Perl module that can split VHDL code into lexical tokens.
SYNOPSIS
use Hardware::Vhdl::Lexer;
# Open the file to get the VHDL code from
my $fh;
open $fh, <, device_behav.vhd || die $!
# Create the Lexer object
my $lexer = Hardware::Vhdl::Lexer->new({ linesource => $fh });
# Dump all the tokens
my ($token, $type);
while( (($token, $type) = $lexer->get_next_token) && defined $token) {
print "# type = $type token=$tokenn";
}
Hardware::Vhdl::Lexer splits VHDL code into lexical tokens. To use it, you need to first create a lexer object, passing in something which will supply chunks of VHDL code to the lexer. Repeated calls to the get_next_token method of the lexer will then return VHDL tokens (in scalar context) or a token type code and the token (in list context). get_next_token returns undef when there are no more tokens to be read.
NB: in this documentation I refer to "lines" of VHDL code and "line" sources etc., but in fact the chunks of code dont have to be broken up at line-ends - they can be broken anywhere that isnt in the middle of a token. New-line characters just happen to be a simple and safe way to split up a file. You dont even have to split up the VHDL at all, you can pass in the whole thing as the first and only "line".
SYNOPSIS
use Hardware::Vhdl::Lexer;
# Open the file to get the VHDL code from
my $fh;
open $fh, <, device_behav.vhd || die $!
# Create the Lexer object
my $lexer = Hardware::Vhdl::Lexer->new({ linesource => $fh });
# Dump all the tokens
my ($token, $type);
while( (($token, $type) = $lexer->get_next_token) && defined $token) {
print "# type = $type token=$tokenn";
}
Hardware::Vhdl::Lexer splits VHDL code into lexical tokens. To use it, you need to first create a lexer object, passing in something which will supply chunks of VHDL code to the lexer. Repeated calls to the get_next_token method of the lexer will then return VHDL tokens (in scalar context) or a token type code and the token (in list context). get_next_token returns undef when there are no more tokens to be read.
NB: in this documentation I refer to "lines" of VHDL code and "line" sources etc., but in fact the chunks of code dont have to be broken up at line-ends - they can be broken anywhere that isnt in the middle of a token. New-line characters just happen to be a simple and safe way to split up a file. You dont even have to split up the VHDL at all, you can pass in the whole thing as the first and only "line".
Hardware::Vhdl::Lexer 1.00 Screenshot
Hardware::Vhdl::Lexer 1.00 Keywords
VHDL
Lexer 1.00
vhdl code
lexical tokens
Perl module
token
code
tokens
split
lexical
type
Hardware::Vhdl::Lexer
HardwareVhdlLexer
Hardware::Vhdl::Lexer 1.00
Libraries
Programming
Bookmark Hardware::Vhdl::Lexer 1.00
Hardware::Vhdl::Lexer 1.00 Copyright
WareSeeker periodically updates pricing and software information of Hardware::Vhdl::Lexer 1.00 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Hardware::Vhdl::Lexer 1.00 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
vhdl codes
tokens direct
badge addicts free tokens
slot machine tokens
pogo free tokens
tokens the lion sleeps tonight
pogo tokens
gaming tokens
tokens and trifles
lucky tokens hollywood
tokens tonight i fell in love
pocket tokens
vhdl source code
casino tokens
tokens lion sleeps tonight
angel pocket tokens
who makes wooden bar tokens for drinks
token ring
Related Software
Devel::Pointer is a Perl module that can fiddle around with pointers. Free Download
The Java Exorcist project can be used to extend the Java language syntactically. Free Download
Pretty Code Web is a syntax highlighter for publishing code, written in any programming language, to the Web. Free Download
Hardware::Simulator is a Perl extension for Perl Hardware Descriptor Language. Free Download
Hardware::iButton is a Perl module that allows to talk to DalSemi iButtons via a DS2480 serial widget. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
Parse::Nibbler is Perl module to parse huge files using grammars written in pure perl. Free Download
HOP::Lexer is a Perl module for "Higher Order Perl" Lexer. Free Download
Latest Software
Popular Software
Favourite Software