forked from nodeca/js-yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yaml.el
62 lines (48 loc) · 1.99 KB
/
yaml.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
;;; yaml.el --- YAML library for Emacs Lisp -*- lexical-binding: t -*-
;; Author: Kisaragi Hiu
;; Version: 0.0.1
;; Package-Requires: ((emacs "24.3"))
;; Keywords: parser yaml convenience
;; This file is not part of GNU Emacs
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; For a full copy of the GNU General Public License
;; see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; Eventuall a port of js-yaml.
;;; Code:
(defvar loader require('./lib/loader'))
(defvar dumper require('./lib/dumper'))
(defvar yaml-Type require("./lib/type"))
(defvar yaml-Schema require("./lib/schema"))
(defvar yaml-FAILSAFE_SCHEMA require("./lib/schema/failsafe"))
(defvar yaml-JSON_SCHEMA require("./lib/schema/json"))
(defvar yaml-CORE_SCHEMA require("./lib/schema/core"))
(defvar yaml-DEFAULT_SCHEMA require("./lib/schema/default"))
(defvar yaml-load loader.load)
(defvar yaml-loadAll loader.loadAll)
(defvar yaml-dump dumper.dump)
(defvar yaml-YAMLException require("./lib/exception"))
(defvar yaml-types
`(
(binary . "./lib/type/binary")
(float . "./lib/type/float")
(map . "./lib/type/map")
(null . "./lib/type/null")
(pairs . "./lib/type/pairs")
(set . "./lib/type/set")
(timestamp . "./lib/type/timestamp")
(bool . "./lib/type/bool")
(int . "./lib/type/int")
(merge . "./lib/type/merge")
(omap . "./lib/type/omap")
(seq . "./lib/type/seq")
(str . "./lib/type/str")))
(provide 'yaml)
;;; yaml.el ends here