-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Many concepts are not being extracted by the current parser, here is an example with the missing concepts on comments per line:
try:
f=open("test.txt","r")#file opening
print(f.read())#file reading
f.close()#file closing
s="this is a test"
sub=s.split()#string split and other built-in functions related to str
for word in sub:
print(word)
aux=s[1:4]
lst=[]#list creation
lst.append(4)#list append
lst.append(45)
print(str(lst[0]))#typecasting and list access
lst.pop(1)#list element removal
del lst[0]
lst2d = [[34,34,23],[12,2,1]]#2d list initialization
print(float(lst2d[1][0]))#typecasting and 2dlist access
except:
print("error")
d={"a":5}#dict initialization
print(d["a"])#dict access
d["a"]=454
Concepts that are extracted:
Dict
Assign
Int
Del
Str
Slice
Delete
List
Attribute
Try
ExceptHandler
For
print
a2un
Metadata
Metadata
Assignees
Labels
No labels