Skip to content
Closed
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/YAML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using Dates
using Printf
using StringEncodings

include("versions.jl")
include("queue.jl")
include("buffered_input.jl")
include("tokens.jl")
Expand Down
25 changes: 25 additions & 0 deletions src/versions.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
YAMLVersion

A type used for controlling the YAML version.

Planned to be supported versions are:

- [`YAMLV1_1`](@ref): YAML version 1.1
- [`YAMLV1_2`](@ref): YAML version 1.2
"""
abstract type YAMLVersion end

"""
YAMLV1_1

A singleton type for YAML version 1.1.
"""
struct YAMLV1_1 <: YAMLVersion end

"""
YAMLV1_2

A singleton type for YAML version 1.2.
"""
struct YAMLV1_2 <: YAMLVersion end