URL
https://opencores.org/ocsvn/configurator/configurator/trunk
[/] [configurator/] [trunk/] [src/] [Configurator.py] - Diff between revs 3 and 5
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 3 |
Rev 5 |
Line 30... |
Line 30... |
self.tabs = {current_tab: []}
|
self.tabs = {current_tab: []}
|
self.tabs_titles = [current_tab]
|
self.tabs_titles = [current_tab]
|
|
|
re0 = re.compile("//\s(\w.+)")
|
re0 = re.compile("//\s(\w.+)")
|
re1 = re.compile("\/\/=(valid)\s(.+)")
|
re1 = re.compile("\/\/=(valid)\s(.+)")
|
re2 = re.compile("(\/\/)?`define\s+(\w+)((\s+([\w']+))|(\s+\/\/\s*(.*)))?\s+")
|
re2 = re.compile("(\/\/)?`define\s+(\w+)((\s+([\w'\.]+))|(\s+\/\/\s*(.*)))?\s+")
|
|
|
current_title = ""
|
current_title = ""
|
current_valid = ""
|
current_valid = ""
|
current_select = None
|
current_select = None
|
current_ifdef = 0
|
current_ifdef = 0
|
Line 57... |
Line 57... |
if re.match("\/\/=end", row):
|
if re.match("\/\/=end", row):
|
self.tabs[current_tab].append(current_select)
|
self.tabs[current_tab].append(current_select)
|
current_select = None
|
current_select = None
|
continue
|
continue
|
|
|
if re.match("\s*`ifdef.*", row):
|
if re.match("\s*`ifn?def.*", row):
|
current_ifdef += 1
|
current_ifdef += 1
|
|
|
if re.match("\s*`endif.*", row):
|
if re.match("\s*`endif.*", row):
|
current_ifdef -= 1
|
current_ifdef -= 1
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.