Commit Graph

17 Commits

Author SHA1 Message Date
Daniel James
bcd3ca2aa5 Quickbook: Rename actions to state.
[SVN r76644]
2012-01-22 23:06:56 +00:00
Daniel James
30a3300297 Quickbook: Don't include actions.hpp from actions_class.hpp.
[SVN r76643]
2012-01-22 23:06:17 +00:00
Daniel James
da8455d21e Quickbook: Stop storing actions in actions.
They're copied into the grammar so it's fine to create them as needed.
This means that `actions` is very badly named now.

[SVN r76642]
2012-01-22 23:05:49 +00:00
Daniel James
672caeec17 Quickbook: Code block callouts.
[SVN r75897]
2011-12-11 11:16:01 +00:00
Daniel James
d3d03dd760 Quickbook: Stateful actions class for syntax highlighter.
[SVN r75896]
2011-12-11 11:15:09 +00:00
Daniel James
650c3088c2 Quickbook: Track position in code blocks and snippets.
[SVN r75614]
2011-11-22 23:45:37 +00:00
Daniel James
fee3477a76 Quickbook: Move syntax highlight actions.
Plus a little bit of a cleanup. There's a little bit of duplication
caused by this, but I think the clarity is worth it. Really do need a
better way of handling actions.

[SVN r75265]
2011-11-02 08:49:59 +00:00
Daniel James
0ee79fe849 Quickbook: Move escaped phrase handling to the main grammar.
Note there's no need to check for the end of the escapse as the
intersection (`&`) rule only passes the content within the esapse.

[SVN r75264]
2011-11-02 08:49:33 +00:00
Daniel James
eec3f7304c Quickbook: Only create the syntax highlighter keywords once.
Symbol tables are really expensive to create, so share between all
instances of `cpp_highlight` and `python_highlight`. It would be better
to create all the grammars just once, but that's trickier as they're quite
stateful and they're not nearly as expensive as the symbol tables.

[SVN r75254]
2011-11-02 07:58:11 +00:00
Daniel James
4dea2a8ad5 Quickbook: Keep files in memory, stop tracking position in iterators.
Files are now permanently loaded. Quickbook substrings are stored as
references into the file. Now positions are stored as iterators into
the original file, the line and column is calculated when messages are
output.

This doesn't have much effect on efficiency but it simplifies a few
things.

[SVN r75253]
2011-11-02 07:57:47 +00:00
Daniel James
bf1d753dba Merge tools directory from trunk.
[SVN r72698]
2011-06-20 19:19:56 +00:00
Daniel James
26dbdc09ec Fix tabs and files without copyright.
[SVN r67612]
2011-01-03 12:43:34 +00:00
Daniel James
c51e3add8f Smarter anchor support.
[SVN r67324]
2010-12-19 13:26:55 +00:00
Daniel James
57fb3c3c02 Cherry pick some reorganisation from the spirit 2 branch.
Based on [57774], [59562], [58046], [59566].

[SVN r65358]
2010-09-09 00:10:30 +00:00
Daniel James
a9f99a5029 No longer use relative paths.
[SVN r65033]
2010-08-26 20:59:05 +00:00
Daniel James
21da9d06bd Separate grammar compilation.
[SVN r65031]
2010-08-26 20:57:45 +00:00
Daniel James
aafa5d83d2 Move the source files into a source directory.
[SVN r65030]
2010-08-26 20:56:37 +00:00