Branch: refs/heads/lexer_comments
Home: https://github.com/yast/yast-core
Commit: 46911595eb7bf4d8aa25b63f800649950a1bfec5
https://github.com/yast/yast-core/commit/46911595eb7bf4d8aa25b63f800649950a1...
Author: Martin Vidner
Date: 2013-06-13 (Thu, 13 Jun 2013)
Changed paths:
M base/tools/ycpc/ycpc.cc
Log Message:
-----------
ycpc: Mention -x,--xml in usage message.
Commit: 8f62e806f768464d11e323c2edc8e3ce1be6bc29
https://github.com/yast/yast-core/commit/8f62e806f768464d11e323c2edc8e3ce1be...
Author: Martin Vidner
Date: 2013-06-13 (Thu, 13 Jun 2013)
Changed paths:
M libycp/src/parser.yy
Log Message:
-----------
parser: removed an old unused function
Commit: c30e02c31aee115a693bc41047ad13f1b76ec8ce
https://github.com/yast/yast-core/commit/c30e02c31aee115a693bc41047ad13f1b76...
Author: Josef Reidinger
Date: 2013-06-13 (Thu, 13 Jun 2013)
Changed paths:
M libycp/src/YBlock.cc
M libycp/src/YCode.cc
M libycp/src/YExpression.cc
M libycp/src/YStatement.cc
M libycp/src/include/ycp/YCode.h
Log Message:
-----------
Add comment attributes to YCode
by taking jreidinger's export_comments and not including its lexer and parser part
comment-after may remain unused but it is easier to leave it in
Commit: 8934343a080f8350f76480548763729c0d6a031d
https://github.com/yast/yast-core/commit/8934343a080f8350f76480548763729c0d6...
Author: Martin Vidner
Date: 2013-06-13 (Thu, 13 Jun 2013)
Changed paths:
M libycp/src/Scanner.cc
M libycp/src/include/ycp/Scanner.h
M libycp/src/parser.yy
M libycp/src/scanner.ll
Log Message:
-----------
Let the scanner save the comments.
prototype: save *some* of those comments in the parser to the
resulting YCode tree.
try it out:
./base/tools/ycpc/ycpc -c -x -l - -o /dev/stdout /usr/share/YaST2/clients/xen.ycp
if it breaks:
ulimit -c unlimited
.../ycpc...
gdb ./base/tools/ycpc/.libs/ycpc core
xen.ycp is 1) short 2) without includes 3) with comments. yay!
Commit: 06ffc945ea1466341349664ee7efeb178c06cef7
https://github.com/yast/yast-core/commit/06ffc945ea1466341349664ee7efeb178c0...
Author: Martin Vidner
Date: 2013-06-13 (Thu, 13 Jun 2013)
Changed paths:
M libycp/src/scanner.ll
Log Message:
-----------
scanner: renamed RESULT to VALUE_TOKEN for consistency with TOKEN
Commit: af7c394e58dfc4590eeeda0030b09958f53f615f
https://github.com/yast/yast-core/commit/af7c394e58dfc4590eeeda0030b09958f53...
Author: Martin Vidner
Date: 2013-06-13 (Thu, 13 Jun 2013)
Changed paths:
M libycp/src/parser.yy
M libycp/src/scanner.ll
Log Message:
-----------
Attach comments from tokens to the parsed tree.
Commit: d182cb4206030fedd28fbe28c6f18c4e4d44e131
https://github.com/yast/yast-core/commit/d182cb4206030fedd28fbe28c6f18c4e4d4...
Author: Martin Vidner
Date: 2013-06-13 (Thu, 13 Jun 2013)
Changed paths:
M libycp/src/YCode.cc
M libycp/src/include/ycp/YCode.h
M libycp/src/parser.yy
Log Message:
-----------
introduce <yconst comment=...> wrapper for <const>
This may be not right, but it was easy.
The idea to generalize this by having the parser wrap all YCodes in
the tree with a dedicated YComment YCode will not fly, because
the parser works with specific classes in its rules and wrapping
them would break that.
Compare: https://github.com/yast/yast-core/compare/46911595eb7b^...d182cb420603