I am creating a programming language. My question to you guys is, how do I make sure that I fully completed my syntax without forgetting to add in something very specific that can easily be overlooked?
My programming language program
Page 1 of 16 Replies - 1049 Views - Last Post: 13 August 2012 - 04:32 PM
Replies To: My programming language program
#2
Re: My programming language program
Posted 09 August 2012 - 06:34 PM
The question is a bit vague.
Do you mean how to make sure that you didn't forget to implement parts of the language? By having extensive test coverage.
Or do you mean how to make sure that your language design isn't missing some features that are important to make your language usable? In that case develop a sufficiently complex sample application in your language. If you're missing any important features, you'll figure it out while working on that project.
Do you mean how to make sure that you didn't forget to implement parts of the language? By having extensive test coverage.
Or do you mean how to make sure that your language design isn't missing some features that are important to make your language usable? In that case develop a sufficiently complex sample application in your language. If you're missing any important features, you'll figure it out while working on that project.
#3
Re: My programming language program
Posted 09 August 2012 - 06:37 PM
#4
Re: My programming language program
Posted 09 August 2012 - 06:39 PM
You would parse the syntax
To get your command compare that
Against a list of valid commands
Compare the parameters one by one
Again using parsing to see if they match
Up to the correct parameters.
If you search the Tutorials section
There is a tutorial on how to write
An interpreter there.
Here it is here by Martyn.rae
Writing an interpreter
Snoopy.
To get your command compare that
Against a list of valid commands
Compare the parameters one by one
Again using parsing to see if they match
Up to the correct parameters.
If you search the Tutorials section
There is a tutorial on how to write
An interpreter there.
Here it is here by Martyn.rae
Writing an interpreter
Snoopy.
This post has been edited by snoopy11: 09 August 2012 - 06:43 PM
#5
Re: My programming language program
Posted 10 August 2012 - 02:53 AM
Moved to Software Development; there's nothing C/C++ in this.
#6
Re: My programming language program
Posted 10 August 2012 - 04:04 AM
Or you can design your language like Forth: It can compile itself from its own source code. Additionally, at runtime, if you don't have the language functionality you need, just write it yourself and save it as part of the system vocabulary. From that point onward it's part of the language.
#7
Re: My programming language program
Posted 13 August 2012 - 04:32 PM
I guess the baseline to aim for is Turing completeness. Anything on top of that is highly-usable syntactic sugar.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote





|