PyHP-pph / PyHP_pph

This repository serves as a centre for collaboration on the PyHP++# language. It will also include a functioning interpreter and compiler for PyHP++# once the standard is finalised.
https://www.reddit.com/r/PyHP_pph/
GNU Affero General Public License v3.0
23 stars 3 forks source link

"Hello, world" example on template.md contradicts rest of spec. #36

Closed Kampfkarren closed 7 years ago

Kampfkarren commented 7 years ago

https://github.com/PyHP-pph/PyHP_pph/blob/master/spec/template.md#hello-world-example

template.md repeatedly refers to a stack. In the example given:

<hello>
<world>

<.> <.>

The stack would be (before <.> <.>):

Thus when doing <.> <.> it should be "world hello". Assuming I'm not misunderstanding, the example should instead be:

<world>
<hello>

<.> <.>
Boscillator commented 7 years ago

Yah, your right. I'll fix that.