diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-02 15:13:13 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-02 15:13:13 -0300 |
| commit | d9d2904f09a8039522dfd6f118d4e37bffd5bdf6 (patch) | |
| tree | 76ff74360f1d2451bb4fd78be1d8093ccd61fc7e /lparser.h | |
| parent | 65d2294454ab68d164154c7ce05caa50bd97d143 (diff) | |
| download | lua-d9d2904f09a8039522dfd6f118d4e37bffd5bdf6.tar.gz lua-d9d2904f09a8039522dfd6f118d4e37bffd5bdf6.tar.bz2 lua-d9d2904f09a8039522dfd6f118d4e37bffd5bdf6.zip | |
Details
Names in the parser and other details that do not change actual code.
Diffstat (limited to 'lparser.h')
| -rw-r--r-- | lparser.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -35,7 +35,7 @@ typedef enum { | |||
| 35 | (string is fixed by the lexer) */ | 35 | (string is fixed by the lexer) */ |
| 36 | VNONRELOC, /* expression has its value in a fixed register; | 36 | VNONRELOC, /* expression has its value in a fixed register; |
| 37 | info = result register */ | 37 | info = result register */ |
| 38 | VLOCAL, /* local variable; var.sidx = stack index (local register); | 38 | VLOCAL, /* local variable; var.ridx = register index; |
| 39 | var.vidx = relative index in 'actvar.arr' */ | 39 | var.vidx = relative index in 'actvar.arr' */ |
| 40 | VUPVAL, /* upvalue variable; info = index of upvalue in 'upvalues' */ | 40 | VUPVAL, /* upvalue variable; info = index of upvalue in 'upvalues' */ |
| 41 | VCONST, /* compile-time <const> variable; | 41 | VCONST, /* compile-time <const> variable; |
| @@ -77,7 +77,7 @@ typedef struct expdesc { | |||
| 77 | lu_byte t; /* table (register or upvalue) */ | 77 | lu_byte t; /* table (register or upvalue) */ |
| 78 | } ind; | 78 | } ind; |
| 79 | struct { /* for local variables */ | 79 | struct { /* for local variables */ |
| 80 | lu_byte sidx; /* index in the stack */ | 80 | lu_byte ridx; /* register holding the variable */ |
| 81 | unsigned short vidx; /* compiler index (in 'actvar.arr') */ | 81 | unsigned short vidx; /* compiler index (in 'actvar.arr') */ |
| 82 | } var; | 82 | } var; |
| 83 | } u; | 83 | } u; |
| @@ -97,7 +97,7 @@ typedef union Vardesc { | |||
| 97 | struct { | 97 | struct { |
| 98 | TValuefields; /* constant value (if it is a compile-time constant) */ | 98 | TValuefields; /* constant value (if it is a compile-time constant) */ |
| 99 | lu_byte kind; | 99 | lu_byte kind; |
| 100 | lu_byte sidx; /* index of the variable in the stack */ | 100 | lu_byte ridx; /* register holding the variable */ |
| 101 | short pidx; /* index of the variable in the Proto's 'locvars' array */ | 101 | short pidx; /* index of the variable in the Proto's 'locvars' array */ |
| 102 | TString *name; /* variable name */ | 102 | TString *name; /* variable name */ |
| 103 | } vd; | 103 | } vd; |
