SourceMap 1.0

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

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

License type: GPL - GNU General Public License
Date added: 8 years, 2 months 17 days ago | Last updated: 8 years, 2 months 17 days ago

More popular Text Processing

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

sourcemap
  • delimeters.py
  • 1.5 KB
  • 08/09/2006 20:52:40
  • common.py
  • 292 Bytes
  • 08/09/2006 20:52:40
  • testpy.py
  • 1.5 KB
  • 08/09/2006 20:52:40
  • SourceMap.py
  • 7.0 KB
  • 08/09/2006 20:52:40
Hot Scripts
Sponsors