📜 ⬆️ ⬇️

50 years of BASIC!

The Visual Basic team joins in congratulations to Dartmouth College and developers around the world whose lives have been affected by this wonderful language, and wants to congratulate Dartmouth BASIC (and, of course, the entire BASIC language family ) on its 50th anniversary !

There are so many people in our team of controlled programming languages ​​who started out with one or another BASIC dialect that we could not help but feel nostalgia and show attachment to our origins. In honor of the 50th anniversary of the grandfather BASIC, we present you QuickVB .

QuickVB is based on the Roslyn .NET compiler platform (available as Nuget packages), which was presented at the BUILD conference this year. To get started, just unzip the QuickVB.zip archive (link at the end of the post) with the project, then build and run the project in Visual Studio 2013. You do not need to install the preliminary versions of Roslyn, the package manager Nuget will download all the necessary dependencies.
')
By running QuickVB, you will see an environment that is a bit like QuickBasic.





However, this is a Windows console application running on Roslyn. To enable syntax highlighting, go to the Options menu (by pressing ALT + O) and turn on the “Enable Roslyn” option (by pressing R).



QuickVB uses the Roslyn Classification API and therefore it can correctly highlight context-sensitive keywords from Visual Basic, even in rather confusing sequences.



QuickVB also uses the Recommendation API to create a list of auto-completion as you type.



Press F5 to run your program:



QuickVB will even show messages from the compiler if, for example, we comment out a line in Imports that includes LINQ.



There are a few more surprises, but we will give you the opportunity to find them yourself! (hint: the VisualBasic compiler in Roslyn is self-sufficient (it is mostly written in VB), and QuickVB is no different from it. Try choosing the Open Self option from the File menu: the QuickVB project will open inside you. Try changing the project and running it again! )

Good luck!

Download project QuickVB (QuickVB.zip)

Translator's note . Generally speaking, the anniversary was yesterday, the first of May. Unfortunately, nothing was written about him on Habré, but BASIC turned out to be the very first PL for many of us. If your first program was written in BASIC, write in the comments what this program did. Mine was written in QuickBasic and drew white rectangles on a black screen.

Source: https://habr.com/ru/post/221617/


All Articles