Unknown6656 / AutoIt-Interpreter

A C# AutoIt interpreter designed to be platform-independent
GNU Affero General Public License v3.0
36 stars 10 forks source link

[BUG] expression `x+y` or `x-y` without spaces gets mis-parsed #195

Closed Unknown6656 closed 2 months ago

Unknown6656 commented 2 months ago

Bug Description

image

Steps to reproduce the Bug

  1. Run autoit3 -mi
  2. Type 1+1
  3. See the following error:

    The line or expression '1+1' could not be parsed due to the following syntax error: "Illegal token '(+|-)?\d+(.\d+)?(e(+|-)?\d+)?', expected {'<>', '>=', '>', '<=', '<', '==', '=', ':', '.', ',', '-', '+', '*', '/', '^', '&', ')', '[', ']', 'to', 'and', 'or', '%EOF%'} at (1:3).". The syntax is either (currently) unsupported, or no parser plugin has been registered for this kind of statement/expression.

Expected Behavior

2

Operating System Type

Windows, MacOS, Linux, Other POSIX compliant OS, Other non-POSIX compliant OS

Operating System Architecture

x86, x64, arm, arm64, Other

Operating System Descriptor

Microsoft Windows [Version 10.0.22631.3296]

AutoIt Interpreter Version

+-----------------+
|    o..          |
|   . . . . .     |   AUTOIT3 INTERPRETER
|    . . o =      |     Written by Unknown6656, 2018 - 2024
|   o o o = o     |
|  + . +.S++.o    |   https://github.com/Unknown6656/AutoIt-Interpreter/
|   =.oo +o=+..   |
|. + ooo.oo.o.    |   Version 0.12.2333.8650, 4fdd69015baac2f29d5b2f50f5e8650b1e0a85cc
| +.= . o o..o.   |   F4316FCB00009FD7CA239285ACF8F2A963B6D1F4FC5BDF9B244A2235F4C9FACE
|++o .   .E+.+o   |
+-----------------+

Additional Information

No response

Unknown6656 commented 2 months ago

closed with d2b9eff8300c0890fceadb80e7b1e41e0867693f.