- Fixed tokenize_select that was not providing level prop for the tokens anymore
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@257 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
@@ -326,6 +326,17 @@ def tokenize_select(expression):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
level=0
|
||||||
|
for i in range(len(l)):
|
||||||
|
l[i]=level_string(l[i])
|
||||||
|
l[i].level=level
|
||||||
|
|
||||||
|
if l[i]=='(':
|
||||||
|
level+=1
|
||||||
|
elif l[i]==')':
|
||||||
|
level-=1
|
||||||
|
|
||||||
return l
|
return l
|
||||||
|
|
||||||
def swap_rename_projection(n):
|
def swap_rename_projection(n):
|
||||||
|
@@ -22,6 +22,8 @@ from relational import relation, parser, optimizer
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
print relation
|
||||||
|
|
||||||
rels={}
|
rels={}
|
||||||
examples_path='samples/'
|
examples_path='samples/'
|
||||||
tests_path='test/'
|
tests_path='test/'
|
||||||
@@ -44,9 +46,10 @@ def load_relations():
|
|||||||
#Naming the relation
|
#Naming the relation
|
||||||
relname=i[:-4]
|
relname=i[:-4]
|
||||||
|
|
||||||
print "Loading relation %s with name %s" % (i,relname)
|
print ("Loading relation %s with name %s..." % (i,relname)),
|
||||||
|
|
||||||
rels[relname]=relation.relation('%s%s' % (examples_path,i))
|
rels[relname]=relation.relation('%s%s' % (examples_path,i))
|
||||||
|
print 'done'
|
||||||
|
|
||||||
def execute_tests():
|
def execute_tests():
|
||||||
|
|
||||||
|
@@ -1 +1 @@
|
|||||||
σ age<30and skill=='PHP' (people ᐅᐊ skills)
|
σ age<30 and skill=='PHP' (people ᐅᐊ skills)
|
||||||
|
Reference in New Issue
Block a user