JavaScripTools Manual


Introduction to Parsers

Many web pages must show internationalized data, like numbers and dates (or, at least, formatted for a single locale). All server technologies (Java/PHP/.NET) offers means to format and parse data from strings, but, standard JavaScript has a very small suport.

Parsers is a script that contains several classes descending from the Parser class, wich contains two methods: parse and format.

The most important parsers are: NumberParser and DateParser, but there are also others, that will be explained later on this chapter.

The StringBuffer class
Table of Contents Next:
Working with the NumberParser