Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.python / Re: What to use for finding as many syntax errors as possible.

SubjectAuthor
o Re: What to use for finding as many syntax errors as possible.Peter J. Holzer

1
Re: What to use for finding as many syntax errors as possible.

<mailman.557.1665332239.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19695&group=comp.lang.python#19695

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-pyt...@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: What to use for finding as many syntax errors as possible.
Date: Sun, 9 Oct 2022 18:17:18 +0200
Lines: 56
Message-ID: <mailman.557.1665332239.20444.python-list@python.org>
References: <a95001e1-b60e-63ce-d363-30481d115282@vub.be>
<20221009161718.n5fokglnkw3nslnk@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="2j2qatceebmwuimh"
X-Trace: news.uni-berlin.de YOhmg1p4Lor/OaZfdpNX/gIPqmJ1Z5M2/GHi9JwcDkdA==
Return-Path: <hjp-python@hjp.at>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'projects,': 0.03; 'bunch':
0.05; 'content-type:multipart/signed': 0.05; 'content-
type:application/pgp-signature': 0.09; 'filename:fname piece:asc':
0.09; 'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'language,': 0.09;
'though.': 0.09; 'supported': 0.15; 'syntax': 0.15; '"creative':
0.16; '+0200,': 0.16; '__/': 0.16; 'antoon': 0.16; 'challenge!"':
0.16; 'from:addr:hjp-python': 0.16; 'from:addr:hjp.at': 0.16;
'from:name:peter j. holzer': 0.16; 'hjp@hjp.at': 0.16; 'holzer':
0.16; 'interesting,': 0.16; 'pardon': 0.16; 'reality.': 0.16;
'recover': 0.16; 'stross,': 0.16; 'subject:syntax': 0.16; 'tries':
0.16; 'url-ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24':
0.16; 'url-ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16;
'wrote:': 0.16; 'python': 0.16; "can't": 0.17; 'to:addr:python-
list': 0.20; 'anything': 0.25; 'seems': 0.26; 'sense': 0.28;
'error': 0.29; 'blog': 0.30; 'but': 0.32; 'subject:for': 0.33;
'there': 0.33; 'url:blog': 0.33; 'header:In-Reply-To:1': 0.34;
'url:)': 0.35; 'errors': 0.36; 'currently': 0.37; 'subject:What':
0.40; 'years.': 0.40; 'want': 0.40; 'received:212': 0.62;
'recovery': 0.64; 'tool': 0.65; 'received:userid': 0.66; 'listed':
0.67; 'right': 0.68; 'url:net': 0.68; 'url-ip:212/8': 0.69;
'interest': 0.70; 'risk': 0.71; 'increased': 0.76; 'out.': 0.80;
'strategy': 0.84; 'received:at': 0.84; 'subject:many': 0.84; 'url-
ip:149/8': 0.84; 'disclaimer:': 0.88
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <a95001e1-b60e-63ce-d363-30481d115282@vub.be>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20221009161718.n5fokglnkw3nslnk@hjp.at>
X-Mailman-Original-References: <a95001e1-b60e-63ce-d363-30481d115282@vub.be>
 by: Peter J. Holzer - Sun, 9 Oct 2022 16:17 UTC
Attachments: signature.asc (application/pgp-signature)

On 2022-10-09 12:09:17 +0200, Antoon Pardon wrote:
> I would like a tool that tries to find as many syntax errors as possible in
> a python file. I know there is the risk of false positives when a tool tries
> to recover from a syntax error and proceeds but I would prefer that over the
> current python strategy of quiting after the first syntax error. I just want
> a tool for syntax errors. No style enforcements. Any recommandations?

There seems to have been increased interest in good error recovery over
the last years. I thought I had bookmarked a bunch of projects, but the
only one I can find right now is Lezer
(https://marijnhaverbeke.nl/blog/lezer.html) which is part of the
CodeMirror (https://codemirror.net/) editor. Python is listed as a
currently supported language, so you might want to check that out.

Disclaimer: I haven't used CodeMirror, so I can't say anything about
its quality. The blog entry about Lezer was interesting, though.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)
1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor