if i then lx.i, lx.column_offset, lx.line = i, i, lx.line+1 end
end
-function chunk (lx)
+local function _chunk (lx)
if lx:peek().tag == 'Eof' then return { } -- handle empty files
else
skip_initial_sharp_comment (lx)
if lx:peek().tag ~= "Eof" then error "End-of-file expected" end
return chunk
end
-end
\ No newline at end of file
+end
+
+-- chunk is wrapped in a sequence so that it has a "transformer" field.
+chunk = gg.sequence { _chunk, builder = unpack }
\ No newline at end of file