Improving Nasal: Difference between revisions

Jump to navigation Jump to search
Line 34: Line 34:
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
enum {
enum {
     OP_VERSION = 0x01, // for serialization and versioning (e.g. caching bytecode)
     OPCODE_VERSION = 0x01, // for serialization and versioning (e.g. caching bytecode)
     BEGIN_OPS=0xFF,    // reserve space for 255 opcode changes (should be plenty)
     BEGIN_OPS=0xFF,    // reserve space for 255 opcode changes (should be plenty)
     OP_NOT, OP_MUL, OP_PLUS, OP_MINUS, OP_DIV, OP_NEG, OP_CAT, OP_LT, OP_LTE,
     OP_NOT, OP_MUL, OP_PLUS, OP_MINUS, OP_DIV, OP_NEG, OP_CAT, OP_LT, OP_LTE,

Navigation menu