summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unitparser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unitparser.cpp b/src/unitparser.cpp
index 09b5982..a894647 100644
--- a/src/unitparser.cpp
+++ b/src/unitparser.cpp
@@ -23,6 +23,7 @@ UnitParser::~UnitParser()
23 23
24Bu::String parse( const Bu::String sEq, int iScale=0, int iRadix=10 ) 24Bu::String parse( const Bu::String sEq, int iScale=0, int iRadix=10 )
25{ 25{
26 /*
26 Bu::MemBuf mbIn( sEq ); 27 Bu::MemBuf mbIn( sEq );
27 Bu::MemBuf mbOut; 28 Bu::MemBuf mbOut;
28 Lexer lex( mbIn ); 29 Lexer lex( mbIn );
@@ -30,6 +31,8 @@ Bu::String parse( const Bu::String sEq, int iScale=0, int iRadix=10 )
30 Parser parser( lex, mbOut ); 31 Parser parser( lex, mbOut );
31 parser.parse(); 32 parser.parse();
32 return mbOut.getString().trimWhitespace(); 33 return mbOut.getString().trimWhitespace();
34 */
35 return "";
33} 36}
34 37
35void UnitParser::order1() 38void UnitParser::order1()
@@ -54,7 +57,7 @@ void UnitParser::assignment()
54 parser.parse(); 57 parser.parse();
55// Bu::println("%1 == %2").arg( mbOut.getString().trimWhitespace() ) 58// Bu::println("%1 == %2").arg( mbOut.getString().trimWhitespace() )
56// .arg( parser.getVariable("test") ); 59// .arg( parser.getVariable("test") );
57 unitTest( mbOut.getString().trimWhitespace() == parser.getVariable("test").toString() ); 60// unitTest( mbOut.getString().trimWhitespace() == parser.getVariable("test").toString() );
58} 61}
59 62
60void UnitParser::parse1() 63void UnitParser::parse1()