GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mohamad-khorsandi/python-syntax-analyzer: detecting python syntax errors given attribute grammar in BNF form

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
grammar_src
grammar_src
 
 
pyCode
pyCode
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
untitled.iml
untitled.iml
 
 

Repository files navigation

python syntax analyzer

this is a simple python syntax analyzer for educational purposes. the project can detect syntax mistakes in code and suggests for correction.

grammar files

it contains several files for syntax inside grammar_src directory. you can add syntax even for other languages as you wish. syntax files are at BNF form. this is an example of these syntax files:

Screenshot 2025-08-16 173841

code file

also there is a file for input python code: the file is inside pyCode directory.

test

let's test it with a wrong code:

Screenshot 2025-08-16 180024

this code missed a colon at line 16. now this is the result:
Screenshot 2025-08-16 180226

About

detecting python syntax errors given attribute grammar in BNF form

Topics

attribute-grammarbnfgrammar-checkergrammar-parserpythonsyntax-analyzer

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.