| 478 | }; |
| 479 | |
| 480 | s32 compile(CompileOptions &opts) |
| 481 | { |
| 482 | Buffer buf = opts.read(); |
| 483 | |
| 484 | StateMachineCompiler smc(opts); |
| 485 | s32 err = 0; |
| 486 | err = smc.parse(buf); |
| 487 | ENSURE_OR_RETURN(STATE_MACHINE_RESOURCE, err == 0, opts); |
| 488 | |
| 489 | return smc.write(); |
| 490 | } |
| 491 | |
| 492 | } // namespace state_machine_resource_internal |
| 493 | #endif // if CROWN_CAN_COMPILE |
no test coverage detected