| | |
Programming Language Design Help
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
Hello,
I am writing a programming language in c++ for a class and I am having a problem understanding how to do some of it. The language is based on Forth, and you are allowed to redefine how any of the words in the language work. I am trying to understand how to store the instructions for each of the words. If anyone can shed some light on some methods of accomplishing this, it would be greatly appreciated!
Thanks,
Nick
I am writing a programming language in c++ for a class and I am having a problem understanding how to do some of it. The language is based on Forth, and you are allowed to redefine how any of the words in the language work. I am trying to understand how to store the instructions for each of the words. If anyone can shed some light on some methods of accomplishing this, it would be greatly appreciated!
Thanks,
Nick
It depends.
What features of the stack language are there? What values could possible appear on the stack? Numbers? Integers, Doubles? Strings, arrays, linked lists? Do you want to have runtime checks to see what kind of data structure you're dealing with? Can pointers (to functions) go on the stack? Do you want to be able to construct functions in the middle of code?
What features of the stack language are there? What values could possible appear on the stack? Numbers? Integers, Doubles? Strings, arrays, linked lists? Do you want to have runtime checks to see what kind of data structure you're dealing with? Can pointers (to functions) go on the stack? Do you want to be able to construct functions in the middle of code?
•
•
Join Date: Sep 2007
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Hello,
I am writing a programming language in c++ for a class and I am having a problem understanding how to do some of it. The language is based on Forth, and you are allowed to redefine how any of the words in the language work. I am trying to understand how to store the instructions for each of the words. If anyone can shed some light on some methods of accomplishing this, it would be greatly appreciated!
Thanks,
Nick
---------------------
[snipped fake signature]
Last edited by Narue; Mar 24th, 2008 at 2:12 pm. Reason: Snipped fake signature
I guess it is a compiler project assignment, you can probrably use lex and yacc to do it.
![]() |
Similar Threads
- Future of programming language? (Computer Science)
- Which Programming Language is suitbale for.... (IT Professionals' Lounge)
- General Programming issue (Computer Science)
- Game Programming / Software Design (Computer Science)
- Getting started in programming (Computer Science)
- Where to get started with Web Programming (IT Professionals' Lounge)
Other Threads in the Computer Science Forum
- Previous Thread: binary search trees
- Next Thread: I want to get started learning a programming language
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware connect conversion csc dataanalysis dataintepretation development dfa dissertation dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws linkbait lsmeans mainframes marketing mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying stephenfry study supercomputer supercomputing sweden technology textfield turing turingtest two'scompliment virus ww2






