Note: You need to have parol >= 4.3.4 installed to compile this project successfully.
A small C# command-line Pascal parser based on a parol grammar. The parser works as acceptor only. It demonstrates the LALR(1) parser generation with parol.
- Reads a Pascal source file from the command line
- Parses it with the generated
PascalCsParser - Prints
Success!and the semantic result (or an error message)
- .NET 10 SDK
- Windows with .NET Framework 4.8 runtime (for
net48execution) - The local
parol-dotnetrepository at../../parol-dotnet(required byPascalCs.csproj)
net10.0net48
From the repository root:
dotnet run -f net10.0 -- .\pascal_sources\basics.pas
dotnet run -f net48 -- .\pascal_sources\basics.pasYou can replace the sample file with any Pascal source path.