From 5ff14a54db5fa690e451c0fdabf569b4b6e34e2e Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Thu, 16 Jun 2011 10:42:26 -0600 Subject: [PATCH] Commented out code removal --- .../chaiscript/language/chaiscript_parser.hpp | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/include/chaiscript/language/chaiscript_parser.hpp b/include/chaiscript/language/chaiscript_parser.hpp index aa58999..c9fa7dc 100644 --- a/include/chaiscript/language/chaiscript_parser.hpp +++ b/include/chaiscript/language/chaiscript_parser.hpp @@ -126,13 +126,6 @@ namespace chaiscript multiplication.push_back("%"); m_operator_matches.push_back(multiplication); - /* - m_operators.push_back(AST_Node_Type::Dot_Access); - std::vector dot_access; - dot_access.push_back("."); - m_operator_matches.push_back(dot_access); - */ - for ( int c = 0 ; c < detail::lengthof_alphabet ; ++c ) { for ( int a = 0 ; a < detail::max_alphabet ; a ++ ) { m_alphabet[a][c]=false; @@ -1481,7 +1474,7 @@ namespace chaiscript } /** - * Reads an dot expression(member access), then proceeds to check if it's a function or array call + * Reads a dot expression(member access), then proceeds to check if it's a function or array call */ bool Dot_Fun_Array() { bool retval = false; @@ -1700,9 +1693,7 @@ namespace chaiscript * Parses any of a group of 'value' style ast_node groups from input */ bool Value() { - if (Var_Decl() || /*Lambda() ||*/ Dot_Fun_Array() || /*Num(true) ||*/ Prefix() /*|| - Quoted_String(true) || Single_Quoted_String(true) || - Paren_Expression() || Inline_Container()*/) { + if (Var_Decl() || Dot_Fun_Array() || Prefix()) { return true; } else { @@ -1739,11 +1730,6 @@ namespace chaiscript case(AST_Node_Type::Comparison) : build_match(AST_NodePtr(new eval::Comparison_AST_Node()), prev_stack_top); break; - /* - case(AST_Node_Type::Dot_Access) : - build_match(AST_NodePtr(new eval::Dot_Access_AST_Node()), prev_stack_top); - break; - */ case(AST_Node_Type::Addition) : oper = m_match_stack.at(m_match_stack.size()-2); m_match_stack.erase(m_match_stack.begin() + m_match_stack.size() - 2, @@ -2000,7 +1986,7 @@ namespace chaiscript while ((m_input_pos != m_input_end) && (!Eol())) { ++m_input_pos; } - // TODO: respect // -*- coding: utf-8 -*- on line 1 or 2 see: http://evanjones.ca/python-utf8.html) + /// \todo respect // -*- coding: utf-8 -*- on line 1 or 2 see: http://evanjones.ca/python-utf8.html) } if (Statements()) {