Menu

#1 float default not recognised

closed-fixed
nobody
None
5
2000-10-11
2000-10-04
No

in lexer.ll the default value is an ALNUM, which prevents default float values. This patch works around that:

--- lexer.ll.orig Wed Oct 4 20:06:34 2000
+++ lexer.ll Wed Oct 4 20:04:16 2000
@@ -28,7 +28,7 @@
char [A-Za-z]
first_char ^[A-Za-z]
digit [0-9]
-alnum [a-zA-Z_0-9]+
+alnum [.\-a-zA-Z_0-9]+
c_var [a-zA-Z_][a-zA-Z_0-9]*
file [a-zA-Z_][a-zA-Z_0-9/]*[\.a-zA-Z_0-9/]*
whitespace [ \t\n]

Discussion

  • Mike Borella

    Mike Borella - 2000-10-11

    Good catch. I fixed it, but the fix was a little hairier than the code below. 0.5.1 will reflect the change.

     
  • Mike Borella

    Mike Borella - 2000-10-11
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB