author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月27日 17:45:49 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月27日 17:45:49 +0200 |
commit | 1b2fab01c5b721e793a27dd5f5e67eab65a4fd78 (patch) | |
tree | 475b9aaa3cd1693c0a83bf965e039c214274ab6b /agg-plot/split-parser.h | |
parent | f31d5249020fd59ae6f997c870efa9baac05ca05 (diff) | |
download | gsl-shell-1b2fab01c5b721e793a27dd5f5e67eab65a4fd78.tar.gz |
-rw-r--r-- | agg-plot/split-parser.h | 44 |
diff --git a/agg-plot/split-parser.h b/agg-plot/split-parser.h index dcf7dc20..bbc9044d 100644 --- a/agg-plot/split-parser.h +++ b/agg-plot/split-parser.h @@ -23,24 +23,24 @@ public: { char c = *m_ptr; if (c != '0円') - m_ptr++; + m_ptr++; return c; }; void push() { if (m_ptr > m_content) - m_ptr--; + m_ptr--; }; bool checknext(char reqchar) { char c = *m_ptr; if (c == reqchar) - { - m_ptr++; - return true; - } + { + m_ptr++; + return true; + } return false; }; }; @@ -54,10 +54,10 @@ public: for (int c = 0; ; c++) { - node_type* child = parse(lex); - if (! child) - break; - t->add(child); + node_type* child = parse(lex); + if (! child) + break; + t->add(child); } return t; @@ -71,23 +71,23 @@ public: switch (t) { case '.': - return new tree::leaf<base_type, direction_e>(); + return new tree::leaf<base_type, direction_e>(); case 'h': - return exprlist(lex, along_x); + return exprlist(lex, along_x); case 'v': - return exprlist(lex, along_y); + return exprlist(lex, along_y); case '(': - { - node_type *nd = parse(lex); - if (! lex.checknext(')')) - return 0; - return nd; - } + { + node_type *nd = parse(lex); + if (! lex.checknext(')')) + return 0; + return nd; + } case ')': - lex.push(); - return 0; + lex.push(); + return 0; default: - return 0; + return 0; } return 0; |