working on macro expansion...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-04-16 22:35:51 +03:00
parent e7812df701
commit 8baa8da94b

View File

@ -508,6 +508,22 @@ function*(str){
yield* group(lex(str)) }
var expand =
module.expand =
function(str){
var parser = parse(str)
while(true){
var {elem, done} = parse.next()
if(done){
return }
// text block...
if(typeof(elem) == 'string'){
yield elem }
}
}
// XXX
var expandPage =
module.expandPage =