rpn/test/026-parse-program.md

87 lines
788 B
Markdown
Raw Permalink Normal View History

# PARSE PROGRAM
2022-02-12 19:11:22 +01:00
`default del `
## type
`<< I >> type`
-> stack should be "program"
`del`
## prog 1
`<< I am a program >>`
-> stack should be « I am a program »
2022-02-12 19:11:22 +01:00
`del`
## prog 2
`<<I am a program>>`
-> stack should be « I am a program »
2022-02-12 19:11:22 +01:00
`del`
## prog 3
`<< I am a program >>`
-> stack should be « I am a program »
2022-02-12 19:11:22 +01:00
`del`
## prog 4
`«I am a program»`
-> stack should be « I am a program »
2022-02-12 19:11:22 +01:00
`del`
## prog 5
`« I am a program »`
-> stack should be « I am a program »
2022-02-12 19:11:22 +01:00
`del`
## unterminated 1
`<< prog`
-> stack should be « prog »
2022-02-12 19:11:22 +01:00
`del`
## unterminated 2
`« prog`
-> stack should be « prog »
2022-02-12 19:11:22 +01:00
`del`
## unterminated 3
`<< prog>`
-> stack should be « prog> »
2022-02-12 19:11:22 +01:00
`del`
## unterminated 4
```
<<
«
```
-> stack should be « », « »
2022-02-12 19:11:22 +01:00
`del`