Commit Graph

12 Commits

Author SHA1 Message Date
Dmitri Hrybenko
00722d4c2e Comment parsing: extract parameter name from the text in :param: field
Swift SVN r16750
2014-04-24 09:13:42 +00:00
Dmitri Hrybenko
021b5b4561 Comment to XML conversion: pass through block markup as HTML tags, for the lack
of better markup in current XML schema

I know this XML is probably as bad as XML can get, but at least it allows
clients to render some block markup.  I expect to replace this with some real
tags soon.


Swift SVN r16657
2014-04-22 17:15:46 +00:00
Dmitri Hrybenko
68e8fee5fc Comment parsing: put more information into the generated XML documents
This commit adds infrastructure for conversion and testing it.

The conversion is still incomplete, pending discussion about which tags should
we use in the XML documents.  I copied the RelaxNG schema from Clang, and will
edit it accordingly.


Swift SVN r16451
2014-04-17 15:42:51 +00:00
Dmitri Hrybenko
9be26fea05 ReST parsing features: actually, we expect escaping to work when parsing of
inline markup is implemented


Swift SVN r16122
2014-04-09 16:52:27 +00:00
Dmitri Hrybenko
d72a13b1c7 ReST parsing: add information about current and expected support level of
various section of ReST specification


Swift SVN r16121
2014-04-09 16:48:50 +00:00
Dmitri Hrybenko
3ad1f7783c ReST parser: add some tests for LineListRef, and fix a bug in
LineListRef::getLinePart() found by them


Swift SVN r15870
2014-04-03 15:35:24 +00:00
Dmitri Hrybenko
92b2004280 ReST parsing: add ReSTASTNode::dump() for use in the debugger
This uses the XML output format, which is not very readable, but it is better
than nothing.


Swift SVN r15869
2014-04-03 15:32:51 +00:00
Dmitri Hrybenko
2c28b14c7f ReST parser: actually remember that we computed line classification so that we
don't re-compute it over and over again


Swift SVN r15867
2014-04-03 14:35:24 +00:00
Dmitri Hrybenko
6f232af3bb ReST: now that LineList is lightweight and does not own data, pass it by value
I am not sure if we need LineList as a separate entity, but let's keep it for
now.  Some document-global data might come later.  If not, LineList should be
collapsed into LineListRef.


Swift SVN r15864
2014-04-03 11:14:38 +00:00
Dmitri Hrybenko
f370da96b1 ReST: make data in a LineList be owned by ReSTContext, so that users don't have
to carry all LineLists along with a ReSTContext.


Swift SVN r15863
2014-04-03 11:03:09 +00:00
Dmitri Hrybenko
8d59f36796 Implement a basic ReST parser on block level, producing a ReST AST
This parser does not recognize inline markup.


Swift SVN r15416
2014-03-24 16:33:43 +00:00
Dmitri Hrybenko
d51769b6a5 Implement some elements of a ReST parser
It does not yet understand a lot of ReST constructs, in particular, it does not
understand inline markup at all, but it is good enough to extract brief
comments.

The parser in BriefParser.cpp does not construct any ASTs or emit any warnings.
This is a special parser for brief comments that should be as fast as possible.
Real ReST parser will come later.


Swift SVN r15046
2014-03-14 13:03:19 +00:00