comparison src/luan/impl/LuanParser.java @ 1580:2975c932864d

require options
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 10 Feb 2021 23:56:59 -0700
parents 8fbcc4747091
children 0af6a9d6d12f
comparison
equal deleted inserted replaced
1579:dd881eb03d87 1580:2975c932864d
385 private Stmts TemplateStmt() throws ParseException { 385 private Stmts TemplateStmt() throws ParseException {
386 Expr exprs = TemplateExpressions(); 386 Expr exprs = TemplateExpressions();
387 if( exprs == null ) 387 if( exprs == null )
388 return null; 388 return null;
389 Stmts stmt = new Stmts(); 389 Stmts stmt = new Stmts();
390 stmt.add( "Luan.checkFunction(luan.index(PackageLuan.require(luan,\"luan:Io.luan\"),\"template_write\")).call(luan," ); 390 stmt.add( "Luan.checkFunction(luan.index(luan.require(\"luan:Io.luan\"),\"template_write\")).call(luan," );
391 stmt.addAll( exprs.array() ); 391 stmt.addAll( exprs.array() );
392 stmt.add( "); " ); 392 stmt.add( "); " );
393 return stmt; 393 return stmt;
394 } 394 }
395 395