Skip to content

Commit 5ecb2a1

Browse files
committed
fix(docs): make givenExpression and tokens parameters optional in Evaluator and Parser
1 parent db91819 commit 5ecb2a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Evaluator/Evaluator.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ end
155155
local Evaluator = {}
156156

157157
--- Creates a new Evaluator instance.
158-
--- @param givenExpression table The expression to evaluate.
158+
--- @param givenExpression table? The expression to evaluate.
159159
--- @param givenVariables table? The variables to use in the evaluator.
160160
--- @param givenOperatorFunctions table? The operator functions to evaluate in the evaluator.
161161
--- @param givenFunctions table? The functions to evaluate in the evaluator.

src/Parser/Parser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ end
278278
local Parser = {}
279279

280280
--- @class Creates a new Parser instance.
281-
--- @param tokens table The tokens to parse.
281+
--- @param tokens table? The tokens to parse.
282282
--- @param operatorPrecedenceLevels table? The operator precedence levels to use in the parser. Default is DEFAULT_OPERATOR_PRECEDENCE_LEVELS.
283283
--- @param tokenIndex number? The index of the current token. Default is 1.
284284
--- @param expression string? The expression to show during an error (e.g unexpected operator, etc.).

0 commit comments

Comments
 (0)