diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-15 12:43:37 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-15 12:43:37 -0300 |
| commit | 3fb7a77731e6140674a6b13b73979256bfb95ce3 (patch) | |
| tree | e877e7bb99ac7d2d6c7bf6a9c7c94948f0ddaf65 /llex.h | |
| parent | fded0b4a844990b1a6d0cda1aba25df33eb5f46f (diff) | |
| download | lua-3fb7a77731e6140674a6b13b73979256bfb95ce3.tar.gz lua-3fb7a77731e6140674a6b13b73979256bfb95ce3.tar.bz2 lua-3fb7a77731e6140674a6b13b73979256bfb95ce3.zip | |
Internalized string "break" kept by the parser
The parser uses "break" as fake label to compile "break" as "goto
break". To avoid producing this string at each use, it keeps it
available in its state.
Diffstat (limited to 'llex.h')
| -rw-r--r-- | llex.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -75,6 +75,7 @@ typedef struct LexState { | |||
| 75 | struct Dyndata *dyd; /* dynamic structures used by the parser */ | 75 | struct Dyndata *dyd; /* dynamic structures used by the parser */ |
| 76 | TString *source; /* current source name */ | 76 | TString *source; /* current source name */ |
| 77 | TString *envn; /* environment variable name */ | 77 | TString *envn; /* environment variable name */ |
| 78 | TString *brkn; /* "break" name (used as a label) */ | ||
| 78 | } LexState; | 79 | } LexState; |
| 79 | 80 | ||
| 80 | 81 | ||
