By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Creating own programming language in

P: 2
I want to create my own programming language in

Can i legally parse all classes or functions in own programming language, if i can then what type of classes or functions i can use.

can i parse XAML in my own programming language to create graphics.
Jun 14 '13 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 3,112
First of all, you don't create one programming language in another. You create a programming language and then write the compiler and/or interpreter in another language (or at least part of it). Creating the language itself means making decisions on syntax, deciding on keywords, how what structures should work, which paradigms you want to follow and so on. You can do that on paper if you like. Drawing pictures is probably helpful at this point too. And think about basic functions (such as function calls, variable declarations and input/output) long before you start thinking about XML parsing and graphics display. Those are normally done in libraries that may be delivered with the language but aren't part of the actual language definition. (They can therefore be written in the language you created.)

When you have done that and want to write the compiler / interpreter you can do that in a few different ways. As you obviously want to somehow use VB.NET, building the compiler to run as a .NET language may be a good idea. There are many resources you can use to do that kind of stuff, buying a book (e.g. this one) is probably a good idea. CCI is probably also a good source. And generally just search for articles about compiler building. It's not an easy task but it's definitely possible if you put enough work into it.
Jun 14 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.