Diff of /pyke/krb_compiler/kfbparser.py [6e8bf0] .. [8be709]  Maximize  Restore

Switch to side-by-side view

--- a/pyke/krb_compiler/kfbparser.py
+++ b/pyke/krb_compiler/kfbparser.py
@@ -56,11 +56,15 @@
     '''
     p[0] = None
 
-def p_first(p):
+def p_number(p):
     ''' data : NUMBER_TOK
-        data : STRING_TOK
     '''
     p[0] = p[1]
+
+def p_string(p):
+    ''' data : STRING_TOK
+    '''
+    p[0] = eval(p[1])
 
 def p_quoted_last(p):
     ''' data : IDENTIFIER_TOK

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks