Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prescanner adds closing quotes when #96

Open
mmatera opened this issue Nov 25, 2024 · 0 comments
Open

Prescanner adds closing quotes when #96

mmatera opened this issue Nov 25, 2024 · 0 comments

Comments

@mmatera
Copy link
Contributor

mmatera commented Nov 25, 2024

Description

When an input includes characters using the ASCII code escape form, an extra quote is added at the end of the input.

How to reproduce

In the REPL, type

a="\.4Auan

Output Given

Juan

Expected behavior

The expression should result in an incomplete expression.

Syntax::sntxi: Incomplete expression; more input is needed (line 1 of "<stdin>").

The problem comes if we write the complete expression

a="\.4Auan"

because then, the final quote is interpreted as a new open string, which is not closed.

Your Environment

OS: Ubuntu Mate 22.04

Mathics 7.0.1dev0
on CPython 3.8.12 (heads/pyston_main:759470647d, Apr 1 2022, 15:36:47)
using SymPy 1.13.3, mpmath 1.3.0, numpy 1.21.4, cython 0.29.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant