diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:31:44 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-08-17 07:31:44 +0200 |
| commit | 6993a164dd57c57be9f79190824b774b162272eb (patch) | |
| tree | 05152aca5e1cc9b166c9f472cd041fee47836ab4 /tests | |
| parent | c6aaea6079f295c721b641f82b5f0f2a520490e3 (diff) | |
| download | tools.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 'tests')
0 files changed, 0 insertions, 0 deletions
