Login   Register  
PHP Classes
elePHPant
Icontem

Class: SourceMap

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrea Giammarchi  >  SourceMap  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: SourceMap
Base name: sourcemap
Description: Tokenize source code in several languages
Related classes: , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1243 users
All time rank: 2531
Week users: 0 users
Week rank: 2507
Picture of Andrea Giammarchi
Author: Andrea Giammarchi <e-mail contact>
Packages: 17 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Age: 33
All time rank: 202 in Italy Italy
Week rank: 76 Down4 in Italy Italy Down
Innovation award
Innovation award
Nominee: 5x


  Detailed description  
This class can be used to parse and extract a list of tokens from source code in one of several supported languages.

It can parse source code in a given language and extract tokens according to the definitions of token delimiter character sequences for that language. The class supports PHP, Javascript and Python.

It can extract several types of tokens: comments in one or more lines, single or double quoted strings and pure code. Other tokens may be supported by adding rules for them to the delimiters definitions.

The parsed tokens are returned as an array that includes the name of the token delimiter as well its start and end positions in the original source code text.

 

  Groups  
Group folder image Text processing Manipulating and validating text data View top rated classes

  Rate classes User ratings   Dependents   Applications   Files Files  

  User ratings  
There are not enough user ratings to display for this class.

  Packages that need this class  
Class Dependency Why it is needed
Cruncher class
Required
Use this class to map source codes
GzOutput
Required
Use this class to map source codes
JavaScript Compressor
Required
Generates the JS source code map.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file SourceMap.class.php Class PHP Version
Plain text file delimeters.php Aux. Delimeters Example
Plain text file common.php Aux. External Utilities
Plain text file testphp.php Example SimpleTest File
Plain text file common.js Data JavaScript External Utilities
Plain text file common.py Data Python External Utilities
Plain text file delimeters.js Data JavaScript Delimeters Example
Plain text file delimeters.py Data Python Delimeters Example
Plain text file SourceMap.js Data JavaScript Version
Plain text file SourceMap.py Data Python Version
Plain text file testjs.php Aux. JavaScript Test Page
Plain text file testpy.py Data Python Test File

Download all files: sourcemap.tar.gz sourcemap.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.