Cminor Tutorial

Table of Contents

1Introduction
1.1Cminor System Library
1.2Supported Platforms
1.3License
1.4Motivation
2Creating a Minimal Cminor Program
2.1Building a Cminor Project
2.2Running a Cminor Program
3Hello World in Cminor
3.1Building the Project
3.2Running the Hello World Program
3.3Inspecting the Contents of an Assembly
4Printing Program Arguments
4.1Running the Program
4.2Possible Signatures of the Main Function
5Source File Character Encoding
5.1Hello World in Chinese
5.2Unicode in Identifiers
6Creating Libraries and Solutions
6.1Library Files
6.2Program Files
6.3Solution File
6.4Building the Solution
6.5Running the Program
7Larger Example – Creating a Desk Calculator
7.1Error Handling
7.2Nonmember Functions
7.3Inheritance
7.4Properties
7.5Boxing and Unboxing
7.6Unicode
7.7Generic Collections
7.8Implementing a Parser
8Binary File I/O
8.1BinaryReader
8.2Using Statement
9Threading
9.1The Program
9.2Output
10JSON-RPC over TCP
10.1System.Net.Sockects Library
10.2System.Json Library
10.3Server Program
10.4Client Program
10.5Example Communication