feat: code generation for simple choice statements, testing machinery

This commit is contained in:
Brett Broadhurst 2026-03-16 17:33:31 -06:00
parent fac5a968e3
commit ee26be6254
Failed to generate hash of commit
13 changed files with 304 additions and 70 deletions

0
src/testdata/hello-world/input.txt vendored Normal file
View file

1
src/testdata/hello-world/story.ink vendored Normal file
View file

@ -0,0 +1 @@
Hello, world!

View file

@ -0,0 +1 @@
Hello, world!

1
src/testdata/monsieur-fogg/input.txt vendored Normal file
View file

@ -0,0 +1 @@
3

7
src/testdata/monsieur-fogg/story.ink vendored Normal file
View file

@ -0,0 +1,7 @@
"What's that?" my master asked.
* "I am somewhat tired[."]," I repeated.
"Really," he responded. "How deleterious."
* "Nothing, Monsieur!"[] I replied.
"Very good, then."
* "I said, this journey is appalling[."] and I want no more of it."
"Ah," he replied, not unkindly. "I see you are feeling frustrated. Tomorrow, things will improve."

View file

@ -0,0 +1,6 @@
"What's that?" my master asked.
1: "I am somewhat tired."
2: "Nothing, Monsieur!"
3: "I said, this journey is appalling."
?> "I said, this journey is appalling and I want no more of it."
"Ah," he replied, not unkindly. "I see you are feeling frustrated. Tomorrow, things will improve."