Skip to content

Commit

Permalink
Implement alias evaluation
Browse files Browse the repository at this point in the history
Also add a rudimentary example port of Shakespeare's Othello to the doc
folder. Useful for benchmarking and probably testing HTML generation in
the future.

This just kept growing and I had to keep fixing pylint/pytest failures.
Really should have made a branch and done it in a bunch of commits, then
squashed later on if necessary - oh well.

Closes #11
Under #18, some work on that got stuck here
  • Loading branch information
Infernio committed Feb 20, 2022
1 parent d73ca76 commit a110cc9
Show file tree
Hide file tree
Showing 62 changed files with 8,174 additions and 712 deletions.
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ disable=raw-checker-failed,
too-many-return-statements,
# Let me have my locals dangit :(
too-many-locals,
# PyCharm's detection is smarter and takes child classes overriding
# the method into account
no-self-use,

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ Zoia itself is licensed [under the GPLv3](LICENSE).
This does not extend to fiction you write using it, nor does it extend to
the output generated from such fiction once Zoia compiles it. You may
license such data however you like.

Note that some files in this repository are licensed under other licenses.
None of them are part of Zoia itself, they function purely as examples.
See the [examples directory](doc/examples) and the LICENSE files in there for
more information.
70 changes: 70 additions & 0 deletions doc/examples/othello/LICENSE

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions doc/examples/othello/src/aliases.zoia
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
\header[aliases]

\def_alias[B; Brabantio]
\def_alias[BI; Bianca]
\def_alias[C; Cassio]
\def_alias[D; Desdemona]
\def_alias[E; Emilia]
\def_alias[G; Gratiano]
\def_alias[I; Iago]
\def_alias[L; Lodovico]
\def_alias[M; Montano]
\def_alias[O; Othello]
\def_alias[R; Roderigo]
1 change: 1 addition & 0 deletions doc/examples/othello/src/dictionary.zoia
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\header[dictionary]
Loading

0 comments on commit a110cc9

Please sign in to comment.