DCSIMG
Roslyn - Pavel's Blog
Sign in | Join | Help

Pavel's Blog

Pavel is a software guy that is interested in almost everything
software related... way too much for too little time

Browse by Tags

Console Calculator with Roslyn (Part 2)
08 August 12 02:39 PM | pavely | with no comments
In the first part we created a simple enough calculator, but it lacked two features I wanted to have: 1. work with degrees or radians in trigonometric functions. 2. allow simple variables to be used without first declaring them. Let’s see how we can implement these features, starting with the first. Trigonometric functions work in radians, which is sometimes inconvenient.What we need is a way to change the parameter to the trigonometric functions by multiplying it by PI/180 if degrees was requested...
Console Calculator with Roslyn (Part 1)
06 August 12 11:49 AM | pavely | 1 comment(s)
A while back I create a Console Calculator project (on CodePlex ) that used manual expression parsing to “understand” a mathematical expression and resolve it. As parsing was involved, this wasn’t a trivial undertaking. What about implementing something similar with Roslyn? Roslyn is Microsoft’s “Compiler as a Service” initiative, now in its second CTP. It provides a powerful framework for examining and manipulating code (among other services). Roslyn can be installed on VS 2010 SP1 or VS 2012 RC...
The Roslyn Project CTP is Available for Download
19 October 11 11:54 PM | pavely | with no comments
The so called “Roslyn” project from Microsoft has been finally released with this early CTP. What is “Roslyn”? It’s an attempt to make the internals of a C# or VB compiler exposed. The usual way we think about a compiler is as a black box – some input goes in – some output comes out. During the compilation process, the compiler builds various tables and gathers a lot of information on the input. After the output is generated, the compiler throws everything away. That’s really too bad. In today’s...