new experimental syntax using reserved word 'undef'

This commit is contained in:
Roberto Ierusalimschy
2018-03-07 12:55:38 -03:00
parent 464658b16a
commit 4a1612ff9b
11 changed files with 113 additions and 43 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lopcodes.h,v 1.188 2018/02/15 15:34:29 roberto Exp roberto $
** $Id: lopcodes.h,v 1.189 2018/02/21 15:49:32 roberto Exp roberto $
** Opcodes for Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -266,6 +266,9 @@ OP_GEI,/* A sB if ((R(A) >= sB) ~= k) then pc++ */
OP_TEST,/* A if (not R(A) == k) then pc++ */
OP_TESTSET,/* A B if (not R(B) == k) then R(A) := R(B) else pc++ */
OP_UNDEF,/* A B R(A)[R(B)] = undef */
OP_ISDEF,/* A B C R(A) = (R(B)[R(C)] == undef */
OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */
OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */