Frontmatec.Interpreters.Pascal 1.0.2

dotnet add package Frontmatec.Interpreters.Pascal --version 1.0.2                
NuGet\Install-Package Frontmatec.Interpreters.Pascal -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Frontmatec.Interpreters.Pascal" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Frontmatec.Interpreters.Pascal --version 1.0.2                
#r "nuget: Frontmatec.Interpreters.Pascal, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Frontmatec.Interpreters.Pascal as a Cake Addin
#addin nuget:?package=Frontmatec.Interpreters.Pascal&version=1.0.2

// Install Frontmatec.Interpreters.Pascal as a Cake Tool
#tool nuget:?package=Frontmatec.Interpreters.Pascal&version=1.0.2                

Frontmatec.Interpreters

Pascal

Antlr

The pascal.g4 file is a modified version, based on this repository file on GitHub.

Modifications include:

  • programHeading modified.
  • block modified.
  • constantDefinitionPart modified.
  • typeDefinitionPart removed.
  • typeDefinition removed.
  • variableDeclarationPart modified.
  • statement modified.
  • EXOR added.
  • TYPE removed.
  • UNIT removed.
  • IDENT modified.

To generate the C# parser, along with a visitor class, run the make-antlr.bat script.

TODO

  • IDENT ?".,;@/\&%*[{}]'!#$�<>
  • Make antlr generated classes internal
  • Refactor PascalInterpreter.Run to RunAsync with cancellationToken
  • Declare function
  • Declare procedure
  • Stack overflow
  • Arrays
  • Return NIL instead of Boolean in context
  • multidimensional arrays
  • Add CancellationToken to context functions and procedures
  • Attach/detach debugger
  • Throw an exception when declaring a function or procedure if it already has been previously declared or exists in the context.
  • remove dynamic code
  • Type check in pacal parser
  • Implement Text and Window types
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 83 12/10/2024
1.0.1 232 12/2/2024
1.0.0 162 11/14/2024
0.2.1 121 11/12/2024
0.2.0 87 11/12/2024
0.1.9 97 11/12/2024
0.1.8 100 11/11/2024
0.1.7 101 11/11/2024
0.1.6 95 11/7/2024
0.1.5 86 11/7/2024
0.1.4 85 11/6/2024
0.1.3 87 11/6/2024
0.1.2 83 11/5/2024
0.1.1 86 11/5/2024