Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.624.105 Times

Hardware::Vhdl::Lexer 1.00

  Date Added: February 05, 2010  |  Visits: 684

Hardware::Vhdl::Lexer

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



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"..

Requirements: No special requirements
Platforms: Linux
Keyword: Code Hardwarevhdllexer Lexical Libraries Perl Module Programming Split Token Tokens Type Vhdl Code
Users rating: 0/10

License: Freeware Size: 11.26 KB
USER REVIEWS
More Reviews or Write Review


HARDWARE::VHDL::LEXER RELATED
Libraries  -  Convert::GeekCode 0.51
Convert::GeekCode is a Perl module that can convert and generate geek code sequences. SYNOPSIS use Convert::GeekCode; # exports geek_decode() my @out = geek_decode(q( -----BEGIN GEEK CODE BLOCK----- Version: 3.12...
25.6 KB  
Libraries  -  Language::Zcode::Parser 0.8
Language::Zcode::Parser is a Perl module that reads and parses a Z-code file into a big Perl hash. SYNOPSIS # Create a Pure Perl Parser my $pParser = new Language::Zcode::Parser "Perl"; # If they didnt put ".z5" at the end, find it anyway...
296.96 KB  
Libraries  -  File::Type::Builder 0.22
File::Type::Builder is Perl module to parse mime-magic and generate code. SYNOPSIS my $build = File::Type::Builder->new(); while ( ) { chomp; my $parsed = $build->parse_magic($_); my $code = $build->string_start($parsed); (or...
153.6 KB  
Libraries  -  Gtk2::Ex::MindMapView::HotSpot::Grip 0.000001
Gtk2::Ex::MindMapView::HotSpot::Grip is a Perl module to manage a grip type "hot spot" on a view item. SYNOPSIS use base Gtk2::Ex::MindMapView::HotSpot::Grip; The Gtk2::Ex::MindMapView::HotSpot::Grip defined grip type hotspots. This kind of...
50.18 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  perlfaq3 5.8.8
perlfaq3 Perl module contains programming tools. How do I do (anything)? Have you looked at CPAN (see perlfaq2)? The chances are that someone has already written a module that can solve your problem. Have you read the appropriate manpages?...
12.2 MB  
Libraries  -  Filesys::DiskSpace 0.05
Filesys::DiskSpace is a Perl module as a df replacement. SYNOPSIS use Filesys::DiskSpace; ($fs_type, $fs_desc, $used, $avail, $fused, $favail) = df $dir; This routine displays information on a file system such as its type, the amount of...
5.12 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Libraries  -  Code::Perl 0.03
Code::Perl is a Perl module to produce Perl code from a tree. SYNOPSIS use Code::Perl::Expr qw( :easy ); my $c = derefh(scal(hash), calls(getkey)); print $c->perl; # ($hash)->{getkey()} Code::Perl allows you to build chunks of Perl code...
17.41 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB