C# Modula-2
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
imp
tests
xamarin
ASCII.cs
FILES
IArgumentLexer.cs
IArgumentParser.cs
IAstNode.cs
IAstNodeQueue.cs
IAstNodeTypeMgr.cs
IAstWriter.cs
ICSharpReswords.cs
ICapabilities.cs
ICompilerOptions.cs
IDiagnostics.cs
IDialects.cs
IDotWriter.cs
IFileIO.cs
IInfile.cs
ILexer.cs
INonTerminals.cs
IParser.cs
IPathname.cs
ITerminals.cs
ITokenSet.cs
LICENSE
README.md
Result.cs
compiler-option-grammar.txt
compiler-options.txt
m2sharp-grammar.gll
modula2.xml

README.md

m2sharp

Join the chat at https://gitter.im/modula-2/Lobby

Modula-2 to C# Translator and Compiler

M2Sharp is a multi-dialect Modula-2 to C# translator and via-C# compiler. It supports the dialects described in the 3rd and 4th editions of Niklaus Wirth's book "Programming in Modula-2" (PIM) published by Springer Verlag, and an extended mode with select features from the revised language by B.Kowarsch and R.Sutcliffe "Modula-2 Revision 2010" (M2R10).

In translator mode, M2Sharp translates Modula-2 source to C# source files. In compiler mode, M2Sharp compiles Modula-2 source via C# source files to object code or executables using the host system's C# compiler.

PIM dialects are supported to allow compilation of program examples from Modula-2 literature which is largely based on PIM. Extended mode is supported to facilitate bootstrapping of a full implementation of M2R10 targeting the CLR.

For more details please visit the project wiki at the URL: https://github.com/m2sf/m2sharp/wiki

+++