singrdk/base/Windows/csic/Demos
Lily Tsuru db9d77760c RDK 2.0 2024-05-24 07:44:53 -04:00
..
Makefile RDK 2.0 2024-05-24 07:44:53 -04:00
README.txt RDK 2.0 2024-05-24 07:44:53 -04:00
config RDK 2.0 2024-05-24 07:44:53 -04:00
find-assert.cs RDK 2.0 2024-05-24 07:44:53 -04:00
find-typeswitch.cs RDK 2.0 2024-05-24 07:44:53 -04:00
hello.cs RDK 2.0 2024-05-24 07:44:53 -04:00
typeswitch-sample.cs RDK 2.0 2024-05-24 07:44:53 -04:00

README.txt

To build the demos:

	cd .../csharp/compiler
	nmake	(builds lcsc.exe)
	nmake -f Demos/Makefile

To run the demos from .../csharp/compiler:

Searching for Idiomatic Usage

	./find-assert parser/disambiguate.cs
	./find-typeswitch base/Imports.cs

Emitting XML

	./lcsc -visitor:XML Demos/hello.cs

Extending C#

	Show grammar in Excel spreadsheet, perhaps nodes in AST.cs
	./lcsc Demos/typeswitch-sample.cs

Source-to-Source Transformations

	./lcsc -visitor:source Demos/hello.cs
	./lcsc -visitor:typeswitch_source,typeswitch/typeswitch.dll Demos/typeswitch-sample.cs

drh@microsoft.com