From e5c68a88ce673b17a5d91c0019bbf87ea637d260 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sat, 8 Aug 2015 18:32:03 -0400 Subject: simplify parsing --- lisc/lisc.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lisc/lisc.h') diff --git a/lisc/lisc.h b/lisc/lisc.h index 44115aa..75069fe 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -120,6 +120,7 @@ enum { enum { OXXX, + /* public instruction */ OAdd, OSub, @@ -135,9 +136,11 @@ enum { OLoadus, OLoadsb, OLoadub, - /* reserved instructions */ - ONop, OCopy, + NPubOp, + + /* reserved instructions */ + ONop = NPubOp, OSwap, OSign, OXDiv, @@ -145,7 +148,7 @@ enum { OXCmpl, OXSet, OXSet1 = OXSet + NCmp-1, - OLast + NOp }; enum { -- cgit 1.4.1