xo-tokenizer xo-reader: + bool literals + if-expr parsing
This commit is contained in:
parent
b0305ede55
commit
ce760bd5cf
30 changed files with 848 additions and 74 deletions
|
|
@ -89,7 +89,7 @@ namespace xo {
|
|||
|
||||
/** always multiple lines if more than one element in stack **/
|
||||
if ((stack_.size() > 0)
|
||||
&& !pps->print_upto_tag("[0]", *stack_[0].get()))
|
||||
&& !pps->print_upto_tag("[0]", stack_[0].get()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@ namespace xo {
|
|||
for (std::size_t i = 0, z = stack_.size(); i < z; ++i) {
|
||||
std::string i_str = tostr("[", z-i-1, "]");
|
||||
|
||||
pps->newline_pretty_tag(ppii.ci1(), i_str, *stack_[i].get());
|
||||
pps->newline_pretty_tag(ppii.ci1(), i_str, stack_[i].get());
|
||||
}
|
||||
|
||||
pps->write(">");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue