1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-14 22:33:14 +00:00

Pipe into eval

This commit is contained in:
Ciarán O'Mara 2019-09-08 09:08:12 +10:00
parent e63ce2e398
commit 892ad0d7dc

View file

@ -317,15 +317,17 @@ const sam_metainfo_actions = Dict(
end,
:anchor => :(),
:mark1 => :(mark1 = p),
:mark2 => :(mark2 = p))
eval(
generate_index_function(
:mark2 => :(mark2 = p)
)
generate_index_function(
MetaInfo,
sam_metainfo_machine,
:(mark1 = mark2 = offset = 0),
sam_metainfo_actions))
eval(
generate_readheader_function(
sam_metainfo_actions
) |> eval
generate_readheader_function(
Reader,
MetaInfo,
sam_header_machine,
@ -346,7 +348,8 @@ eval(
if !eof(stream)
stream.position -= 1 # cancel look-ahead
end
end))
end
) |> eval
const sam_record_actions = Dict(
:record_qname => :(record.qname = (mark:p-1) .- offset),
@ -366,15 +369,17 @@ const sam_record_actions = Dict(
record.filled = (offset+1:p-1) .- offset
end,
:anchor => :(),
:mark => :(mark = p))
eval(
generate_index_function(
:mark => :(mark = p)
)
generate_index_function(
Record,
sam_record_machine,
:(mark = offset = 0),
sam_record_actions))
eval(
generate_read_function(
sam_record_actions
) |> eval
generate_read_function(
Reader,
sam_body_machine,
:(mark = offset = 0),
@ -386,4 +391,6 @@ eval(
@escape
end,
:countline => :(linenum += 1),
:anchor => :(anchor!(stream, p); offset = p - 1)))))
:anchor => :(anchor!(stream, p); offset = p - 1))
)
) |> eval