Fixed-step world runtime, event bus wire protocol between lanes, integration seam (game.ts) with placeholder ball. Lanes A/B/C own disjoint dirs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
19 lines
228 B
JavaScript
19 lines
228 B
JavaScript
class Transpiler {
|
|
|
|
constructor( decoder, encoder ) {
|
|
|
|
this.decoder = decoder;
|
|
this.encoder = encoder;
|
|
|
|
}
|
|
|
|
parse( source ) {
|
|
|
|
return this.encoder.emit( this.decoder.parse( source ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default Transpiler;
|