Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/YAML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module YAML
import Base: start, next, done, isempty, length, show
import Codecs
using Compat

export @yaml_str, @yaml_mstr

if VERSION < v"0.4-dev"
using Dates
Expand Down Expand Up @@ -85,5 +87,12 @@ module YAML
close(input)
data
end
end

macro yaml_str(ex)
load(ex)
end
macro yaml_mstr(ex)
load(ex)
end

end