Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Building a Programming Language: Part II (Adding Conditions, Loop and Blocks to BrainLess)

, 11 Oct 2013
In this article, we will discuss implementing conditional statements, loops and blocks.
/*
Author : Shakti Misra
All are welcome to use these files, distribute, modify and release. But This notice should be included.
*/

Open the .sln file in visual studio 2008, and build it. It will create a BrainLess.exe file in Release/Debug folder. 
Go to command line and run it. brainless.exe <filename>
A test file m.bl is supplied with this. Type the following command on the command prompt
BrainLess <File Name>
Example: 
BrainLess m.bl

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)

Share

About the Author

I like to explore different aspects of technology. Try new things, and get delighted. My interests are programming language, and Imaging. But its not hard to work on other things also. Algorithms delight me over a coffee break.
 
I basically code in C++, but JAVA is not so alien for me. I know few scripting languages also. Basically I feel that knowing a programing language is just a matter of getting introduced to it.
 
For my other articles check my blog on homepage
http://brainlesslabs.com/
 
https://github.com/BrainlessLabs
 
http://www.luxrender.net/en_GB/authors_contributors - SMISRA
Follow on   Twitter   LinkedIn

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 11 Oct 2013
Article Copyright 2010 by BrainlessLabs (Brainlesslabs.com)
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid