Is there a way to implement custom language features in C#?

Microsoft proposes Rolsyn API as an implementation of C# compiler with public API. It contains individual APIs for each of compiler pipeline stages: syntax analysis, symbol creation, binding, MSIL emission. You can provide your own implementation of syntax parser or extend existing one in order to get C# compiler w/ any features you would like. … Read more

What is the difference between a language construct and a “built-in” function in PHP?

(This is longer than I intended; please bear with me.) Most languages are made up of something called a “syntax”: the language is comprised of several well-defined keywords, and the complete range of expressions that you can construct in that language is built up from that syntax. For example, let’s say you have a simple … Read more