File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,9 +165,9 @@ function LuASM.string_tokenizer(input)
165165end
166166
167167--- Parses the instruction and returns an object with the structure:
168- ---
168+ ---
169169--- `{ op = opcode, args = args, line = current line }`
170- ---
170+ ---
171171--- If the parsing has errored out, it returns a string with the error message.
172172--- @param elements table Token list where ` elements[1]` is the mnemonic.
173173--- @param luasm table The LuASM instance (provides settings , etc. ).
@@ -340,7 +340,7 @@ function Stack:peek()
340340end
341341
342342--- Gives the value on the stack with the index.
343- ---
343+ ---
344344--- Given the scenario:
345345--- ```
346346--- stack:push("Hola")
363363---
364364--- stack:get(-10) -- Also returns nil
365365--- ```
366- ---
366+ ---
367367--- The index is **1‑based** (bottom of the stack = 1).
368368--- @param index number The index to fetch.
369369--- @return any | nil The element at ` index` , or ` nil` if out of bounds.
You can’t perform that action at this time.
0 commit comments