Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey Guys,

I am making my own programming language in Visual Baisic and I have come accross a problem(or maybe a few). I don't know what type of programming language I am making but I want to know how to implement a few things.

1. I would like to have classes so that I could type in something like "goto finnish" and then it would execute the code that it in that class

2. I would like to have an "if" statement, so I could say something like "if variable1 = 7 then {execute code in here}

3. And I would like to have paremeters such as the ones in example code 2.

If anyone could help me, that would be great. And remember that I am writing this in Visual Basic. I chose Visual Basic because for my programming language, you type the code into a textbox and then press a run button and it executes the code that is in the textbox. I would have chosen Visual C# to do this, but I only know how to code in C# modules, not with forms.
Posted
Updated 26-Jan-19 1:40am

1 solution

Rather than trying to create your own scripting language, you could use the "Codedom" classes provided by .NET. See for an example Compile and Run VB.NET Code using the CodeDom[^] and many other resources you can find with Google.
 
Share this answer
 
v2
Comments
Member 8378691 8-Mar-12 4:40am    
Hey, this doesn't work for me because I have Visual Basic 2010 Express. Plus, this isn't making my own programming language, it is just how to make a compiler for visual basic. And I don't know what the heck he is talking about in the forum. I downloaded the file to read it myself, I normally do that, but it doesn't work for me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900