[gcalctool] Revert parts of last commit



commit 35f0e37fd259c7113382de9b1d3b1fb5bc5a68c2
Author: Robin Sonefors <ozamosi flukkost nu>
Date:   Fri Oct 1 02:48:59 2010 +0200

    Revert parts of last commit
    
    I was a bit too optimistic, and managed to disable irrelevant
    functionality like 1+1. Oops!

 src/mp-equation-lexer.l |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/mp-equation-lexer.l b/src/mp-equation-lexer.l
index bc13114..ba246ca 100644
--- a/src/mp-equation-lexer.l
+++ b/src/mp-equation-lexer.l
@@ -47,11 +47,10 @@ SEVEN         [7Ù§Û·ß?७৭੭૭୭௭౭೭൭à¹?à»?༧á??á??á?§á ?á¥?á§?á­?
 EIGHT         [8Ù¨Û¸ß?८৮੮૮୮௮౮೮൮à¹?à»?༨á??á??á?¨á ?á¥?á§?á­?᮸á±?á±?ê?¨ê£?ê¤?ê©?ð??¨]
 NINE          [9Ù©Û¹ß?९৯੯૯୯௯౯೯൯à¹?à»?༩á??á??á?©á ?á¥?á§?á­?᮹á±?á±?ê?©ê£?ê¤?ê©?ð??©]
 /* FIXME: DECIMAL and TSEP needs to figure out, at runtime, the correct
- * character. I can't figure out how to make flex do this, so I send
- * everything at mp_set_from_string and let it fail. This is slow.
+ * character. I can't figure out how to make flex do this.
  */
-DECIMAL       .
-TSEP          .
+DECIMAL       [,.]
+TSEP          [ ,]
 DEC           {ZERO}|{ONE}|{TWO}|{THREE}|{FOUR}|{FIVE}|{SIX}|{SEVEN}|{EIGHT}|{NINE}
 HEX           {DEC}|[A-F]|[a-f]
 SUPER_DIGITS  [�¹²³������]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]