10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-21 11:53:32 +01:00

Added soft_touch

Version:1.1.48
This commit is contained in:
Anthony Scemama 2010-03-29 20:43:00 +02:00
parent 7e45583978
commit f4d5322d15
4 changed files with 12 additions and 2 deletions

View File

@ -137,6 +137,12 @@ class Touch(Line):
def __repr__(self):
return "%20s:%5d : %s"%("Touch",self.i,self.text)
class SoftTouch(Touch):
def __init__(self,i,text,filename):
Line.__init__(self,i,text,filename)
def __repr__(self):
return "%20s:%5d : %s"%("SoftTouch",self.i,self.text)
class Irp_read(Line):
def __init__(self,i,text,filename):
Line.__init__(self,i,text,filename)

View File

@ -180,6 +180,9 @@ def get_parsed_text():
error.fail(line,"Variable %s unknown"%(x,))
return ([],Simple_line(line.i," %s_is_built = .True."%(x,),line.filename))
result += map( fun, main_vars[:-1] )
if isinstance(line,SoftTouch):
result += [ ([],Simple_line(line.i,"! <<< END TOUCH (Soft)",line.filename)) ]
else:
result += [ ([],Provide_all(line.i,"! <<< END TOUCH",line.filename)) ]
elif type(line) in [ Begin_provider, Cont_provider ]:
if isinstance(line,Begin_provider):

View File

@ -58,6 +58,7 @@ simple_dict = {
"end_provider": End_provider ,
"assert": Assert ,
"touch": Touch ,
"soft_touch": SoftTouch ,
"provide": Provide ,
"free": Free ,
"irp_if": Irp_If ,

View File

@ -1 +1 @@
version = "1.1.47"
version = "1.1.48"