1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-06-29 20:29:31 +00:00
A 6502-oriented low-level programming language supporting advanced static analysis
Go to file
Cat's Eye Technologies b4eb0b0100 Three passing tests!
2014-03-31 23:31:30 +01:00
eg Initial import. 2014-03-31 23:14:07 +01:00
src Three passing tests! 2014-03-31 23:31:30 +01:00
.hgignore Initial import. 2014-03-31 23:14:07 +01:00
build.sh Initial import. 2014-03-31 23:14:07 +01:00
README.markdown Three passing tests! 2014-03-31 23:31:30 +01:00
test.sh Three passing tests! 2014-03-31 23:31:30 +01:00

SixtyPical

-> Tests for functionality "Parse SixtyPical program"

-> Functionality "Parse SixtyPical program" is implemented by
-> shell command "bin/sixtypical parse %(test-file)"

| routine main {
|    nop
| }
= Program [] [Routine "main" [NOP]]

| reserve word score
| assign word scram 4000
| routine main {
|    lda scram
|    cmp score
| }
= Program [Reserve "score" Word,Assign "scram" Word 4000] [Routine "main" [LOAD A "scram",CMP A "score"]]

All declarations (reserves and assigns) must come before any routines.

| routine main {
|    lda scram
| }
| reserve word score
? expecting "routine"