concatenative-language

Can a Forth-like language be implemented with just one stack?

那年仲夏 提交于 2020-01-24 13:04:25
问题 Forth has a stack and a return-stack. As far as I understand, the point of the return-stack is to store the previous values of the program counter. C programs put the previous value of program counter on the stack, and use no return stack. Does Forth only need a return-stack because it returns result(s) on the stack, and thus the previous value of the program counter could be buried? 回答1: The "Portable Assembly Language" should be close. It's a concept for a compiler for a language which is

Explain concatenative languages to me like I'm an 8-year-old

纵饮孤独 提交于 2019-12-03 03:10:24
问题 I've read the Wikipedia article on concatenative languages, and I am now more confused than I was when I started. :-) What is a concatenative language in stupid people terms? 回答1: To your simple question, here's a subjective and argumentative answer. I looked at the article and several related web pages. The web pages say themselves that there isn't a real theory, so it's no wonder that people are having a hard time coming up with a precise and understandable definition. I would say that at

Explain concatenative languages to me like I'm an 8-year-old

大兔子大兔子 提交于 2019-12-02 16:38:59
I've read the Wikipedia article on concatenative languages , and I am now more confused than I was when I started. :-) What is a concatenative language in stupid people terms? Norman Ramsey To your simple question, here's a subjective and argumentative answer. I looked at the article and several related web pages. The web pages say themselves that there isn't a real theory, so it's no wonder that people are having a hard time coming up with a precise and understandable definition. I would say that at present, it is not useful to classify languages as "concatenative" or "not concatenative". To