aboutsummaryrefslogtreecommitdiff
path: root/crates/xa65/src
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-08-17 07:31:44 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-08-17 07:31:44 +0200
commit6993a164dd57c57be9f79190824b774b162272eb (patch)
tree05152aca5e1cc9b166c9f472cd041fee47836ab4 /crates/xa65/src
parentc6aaea6079f295c721b641f82b5f0f2a520490e3 (diff)
downloadtools.nes-6993a164dd57c57be9f79190824b774b162272eb.tar.gz
tools.nes-6993a164dd57c57be9f79190824b774b162272eb.zip
parser: Fix disambiguation paren on first argument
Arguments can be put inside of enclosing parenthesis, but the parser was assuming that if an opening paren was found when parsing the first argument on an argument list, then that was all it was needed to be parsed. This though conflicts with situations like: .byte ($01 << 2) | ($01 << 1) In this case, the parser would have ignored everything past the first closing paren. This commit provides a fix in which if an operation is found past the first enclosing parenthesis, then this assumption is discarded in favor of a parenthesis being used for disambiguating on an arithmetical/logical expression. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/xa65/src')
0 files changed, 0 insertions, 0 deletions