Skip to content

Commit

Permalink
parser: fix a naming inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Wertzui123 committed Aug 4, 2024
1 parent ff2215f commit 5b5425d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stdlib/aspl/parser/Parser.aspl
Original file line number Diff line number Diff line change
Expand Up @@ -3018,8 +3018,8 @@ class Parser{
return expression
}
var nextToken = tokens.peek()
if(currentLevel < PrecedenceUtils:GetTokenPrecendenceLevel(nextToken)){
var result = parseToken(nextToken, tokens, false, PrecedenceUtils:GetTokenPrecendenceLevel(tokens.next()), expression)
if(currentLevel < PrecedenceUtils:getTokenPrecendenceLevel(nextToken)){
var result = parseToken(nextToken, tokens, false, PrecedenceUtils:getTokenPrecendenceLevel(tokens.next()), expression)
if(result oftype Expression){
return applyOperators(Expression(result), tokens, currentLevel)
}
Expand Down
2 changes: 1 addition & 1 deletion stdlib/aspl/parser/precedence/PrecedenceUtils.aspl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PrecedenceUtils {

[public]
[static]
method GetTokenPrecendenceLevel(Token token) returns PrecedenceLevel{ // TODO: Why is this PascalCase?
method getTokenPrecendenceLevel(Token token) returns PrecedenceLevel{
if(token.type == TokenType.Identifier){
if(token.value == "oftype"){
return PrecedenceLevel.OfType
Expand Down

0 comments on commit 5b5425d

Please sign in to comment.