Login   Register  
PHP Classes
elePHPant
Icontem

SourceMap

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Andrea Giammarchi
Name: Andrea Giammarchi <e-mail contact>
Packages: 17 Browse all classes by Andrea Giammarchi Browse all classes by
Country: Italy Italy - PHP jobs in Italy
Age: 35
All time rank: 182 in Italy Italy
Week rank: 64 Down1 in Italy Italy Up
Innovation award
Innovation award
Nominee: 5x


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Andrea Giammarchi  >  SourceMap  >  Download .zip .tar.gz  >  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
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1282 users
All time rank: 2626
Week users: 0 users
Week rank: 2197 Equal
 
  Groups   Rate classes User ratings   Dependents   Applications   Files Files  

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


  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
Accessible without login Plain text file delimeters.php Aux. Delimeters Example
Accessible without login Plain text file common.php Aux. External Utilities
Accessible without login Plain text file testphp.php Example SimpleTest File
Accessible without login Plain text file common.js Data JavaScript External Utilities
Accessible without login Plain text file common.py Data Python External Utilities
Accessible without login Plain text file delimeters.js Data JavaScript Delimeters Example
Accessible without login Plain text file delimeters.py Data Python Delimeters Example
Accessible without login Plain text file SourceMap.js Data JavaScript Version
Accessible without login Plain text file SourceMap.py Data Python Version
Accessible without login Plain text file testjs.php Aux. JavaScript Test Page
Accessible without login 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.