Skip to content

Commit be611d7

Browse files
committed
misc: Change P&P example
1 parent 63f97bf commit be611d7

File tree

2 files changed

+32
-20
lines changed

2 files changed

+32
-20
lines changed

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,25 @@ Quill is a simple, lightweight and easy-to-use scripting language designed for i
1313
> This project is still in development and is missing some features. If you encounter any issues, please open an issue on GitHub.
1414
1515
```python
16-
LABEL start
17-
18-
ELIZABETH: "It is a truth universally acknowledged..." [pride]
19-
DARCY: "That a single man in possession of a good fortune..." [pride]
20-
ELIZABETH: "Must be in want of a wife!"
16+
MrsBennet: "My dear Mr. Bennet, have you heard that Netherfield Park is let at last?"
2117

2218
CHOICE {
23-
"Ask about Mr. Darcy's fortune" {
24-
ELIZABETH: "And what is your fortune, sir?"
25-
DARCY: "My income is considerable."
26-
},
27-
"Change the subject" {
28-
ELIZABETH: "Shall we discuss the weather?"
29-
GOTO weather
19+
"Yes." { MrBennet: "I think I have!" } [lie, noncanonical],
20+
"No." {
21+
MrBennet: "I have not!"
22+
GOTO news
3023
}
3124
}
3225

33-
LABEL weather
34-
DARCY: "The grounds are quite pleasant today."
26+
MrsBennet: "Oh, you haven't! I am quiet sure of it!"
27+
MrBennet: "Well, you caught me, but I cannot believe it is true."
3528

36-
CHOICE {
37-
"Return to start" { GOTO start },
38-
"Take your leave" { GOTO ending }
39-
}
29+
LABEL news
30+
31+
MrsBennet: "But it is, for Mrs. Long has just been here, and she told me all about it."
32+
MrsBennet: "Do you not want to know who has taken it?"
33+
MrBennet: "You want to tell me, and I have no objection to hearing it."
4034

41-
LABEL ending
42-
ELIZABETH: "Good day, Mr. Darcy."
4335
END
4436
```
4537
For a comprehensive example showcasing all available syntax features, please refer to [syntax.q](/examples/syntax.q)!

examples/pride.q

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
MrsBennet: "My dear Mr. Bennet, have you heard that Netherfield Park is let at last?"
2+
3+
CHOICE {
4+
"Yes." { MrBennet: "I think I have!" } [lie, noncanonical],
5+
"No." {
6+
MrBennet: "I have not!"
7+
GOTO news
8+
}
9+
}
10+
11+
MrsBennet: "Oh, you haven't! I am quiet sure of it!"
12+
MrBennet: "Well, you caught me, but I cannot believe it is true."
13+
14+
LABEL news
15+
16+
MrsBennet: "But it is, for Mrs. Long has just been here, and she told me all about it."
17+
MrsBennet: "Do you not want to know who has taken it?"
18+
MrBennet: "You want to tell me, and I have no objection to hearing it."
19+
20+
END

0 commit comments

Comments
 (0)