O'Reilly logo

DSLs in Boo: Domain-Specific Languages in .NET by Ayende Rahien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Boo language syntax

This appendix is intended as a language reference. It lists the Boo syntax, compares it to the C# equivalent, and provides a few words of explanation. In many cases, the Boo and C# syntax are similar, in both shape and intent.

Note

For a more explanatory guide to Boo, see appendix A.

B.1. Interesting keywords

Assuming that you are already familiar with another programming language, the Boo syntax should be familiar to you. Table B.1 compares Boo syntax to the equivalent C# syntax.

Table B.1. Boo syntax compared to C# syntax for keywords

Boo syntax

C# equivalent

class Car:    pass

public class Car{}

Because Boo has significant whitespace, specifying an empty declaration can be a bit of a problem. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required