#include<stdio.h>#include<stdlib.h>typedefenum{RUNNING=49,STOPPED=50,FAILED=51,HIBERNATING=52}MACHINE_STATE;intmain(void){intinput1;MACHINE_STATE state;printf("Please provide integer in range [1-4]: ");input1=getchar();state=input1;switch(state){caseRUNNING:printf("Machine is running\n"...
C#ソースコード ```cs:codegen.cs /// コード生成 /// ノード static void gen(Node node) { switch (node.kind) { case NodeKind.ND_NUM: Console.Write($" push {node.val}\n"); return; case NodeKind.ND_LVAR: gen_lval(node); Console.Write(" pop rax\n"); Console.Write(" mov ...