- Installed ANTLR4-tools
- Installed .NET 10.0
- first create a C# project called grun4py then copy the two grammar files and example.py to this directory:
dotnet new console -o . -n grun4py -f net10.0
del program.cs
dotnet add package Antlr4.Runtime.Standard --version 4.13.1 copy ..\*.g4
copy ..\example.pyantlr4 -Dlanguage=CSharp PythonLexer.g4
antlr4 -Dlanguage=CSharp PythonParser.g4
dotnet build
dotnet run example.py --no-build