decoder.js
function parseBundle( bundle, database ) {
	while (!bundle.eof()) {
		var op = bundle.u8[bundle.i8++];
		switch (op) {
			case 0xF8: // Export
				var export_name = bundle.prefix + bundle.readStringLT();
				database[ export_name ] = decodePrimitive( bundle, database );
				break;

			default:
				throw new Errors.AssertError('Unknown control operator 0x'+op.toString(16)+' at @'+bundle.i8+'!');
		}
	}
}
function parseBundle( bundle, database ) {
	while (!bundle.eof()) {
		var op = bundle.u8[bundle.i8++];
		switch (op) {
			case 0xF8: // Export
				var export_name = bundle.prefix + bundle.readStringLT();
				database[ export_name ] = decodePrimitive( bundle, database );
				break;

			default:
				throw new Errors.AssertError('Unknown control operator 0x'+op.toString(16)+' at @'+bundle.i8+'!');
		}
	}
}
function parseBundle ( bundle , database ) { while ( ! bundle . eof ( ) ) { var op = bundle . u8 [ bundle . i8 ++ ] ; switch ( op ) { case 0xF8 : // Export var export_name = bundle . prefix + bundle . readStringLT ( ) ; database [ export_name ] = decodePrimitive ( bundle , database ) ; break ; default : throw new Errors . AssertError ( 'Unknown control operator 0x' + op . toString ( 16 ) + ' at @' + bundle . i8 + '!' ) ; } } }
Pare the entire bundle
Pare the entire bundle