# Used to print parts of the source betwen tokens of the AST
private var pos = 0
- var modelbuilder: ModelBuilder
-
- init(modelbuilder: ModelBuilder)
+ init
do
- self.modelbuilder = modelbuilder
html.add_class("nitcode")
token_head = html
prod_head = html
for mm in mmodules do
if dir != null then toolcontext.info("write {dir}/{mm.name}.html", 1)
- var v = new HighlightVisitor(modelbuilder)
+ var v = new HighlightVisitor
if opt_ast.value then v.with_ast = true
var page = null
if not opt_fragment.value then
page.add_raw_html "</li></body>"
page.save("{dir}/index.html")
- var v = new HighlightVisitor(modelbuilder)
+ var v = new HighlightVisitor
toolcontext.info("write {dir}/style.css", 1)
var f = new OFStream.open("{dir}/style.css")
f.write v.css_content