// Step 1949: CompilerIRNode + IRNodePipeline // // t1: IRNodeKind enum values and irKindName // t2: CompilerIRNode construction // t3: IRNodePipeline push/pop/peek // t4: IRNodePipeline drain // t5: IRNodePipeline empty/size; underflow throws #include "CompilerIRNode.h" #include namespace ws = whetstone; static int p=0,f=0; #define T(n) { std::cout<<" "<<#n<<"... "; } #define P() { std::cout<<"PASS\n"; ++p; } #define F(m) { std::cout<<"FAIL: "< 0 ? 1 : 0; }