1
edit
Changes
→Parser Interface
<pre>
/*
The parser needs to pass itself back to the library since the library could
be working with many parsers simultaneously.
@param {StringObject} eventName obj - can be collection of named functions start - must occur exactly once. Has one of argument, the following:parser itself "onstart" end - must occur exactly once - func(. Has one argument, the parser)itself "onparse" parse - must may occur one or many times - func(parser, {"VERTEX":[...]Has two arguments, "COLOR":[...], etc...} "onfinish" - must occur exactly once - func(the parser)itself and a "hook" - ? @param {Function} func - the function to call when the event occursnamed collection of value types.*/addEventListener(eventName, func)
*/
/*
}
function parseCallback(parser, attributes){
parser.version;
parser.numParsedPoints;