singrdk/base/Windows/csic/Demos/README.txt

30 lines
616 B
Plaintext
Raw Normal View History

2008-11-17 18:29:00 -05:00
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