-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Equal sign is now defined as `=` | U+FE66 | U+FF1D | U+1F7F0 - BOM is allowed in the start of the document only - Added \s escape sequence - Disallowed invalid escape sequences - Allowed EOF right after the \ line continuation - Strings and identifiers cannot include characters from the "Disallowed Literal Code Points" list - true, false, and null values are now written as #true, #false, #null respectively - Changed the raw string syntax from r"raw" to #"raw"# - Removed no-whitespace checks around = and type annotations - Strings can now be written as bare identifiers - Added multi-line "dedented" strings, newlines in single-line strings are disallowed - Newlines in multi-line strings are normalized to \n - Identifiers cannot start with .<digits> anymore (optionally prefixed by +-) - Added #inf, #-inf, #nan numbers - true, false, inf, -inf, nan are invalid identifiers - Small documentation improvements, etc. TODO: The correct by the spec handling of whitespace is still to be implemented. TODO: The pretty-printer doesn't yet work well for some special symbols and generally isn't good enough in edge cases. Other KDL v2 changes have alredy been implemented before, namely: Line Tabulation as whitespace, \/ is no longer an escape sequence, \ whitespace escape.
- Loading branch information
Showing
16 changed files
with
768 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Blue Oak Model License | ||
|
||
Version 1.0.0 | ||
|
||
## Purpose | ||
|
||
This license gives everyone as much permission to work with | ||
this software as possible, while protecting contributors | ||
from liability. | ||
|
||
## Acceptance | ||
|
||
In order to receive this license, you must agree to its | ||
rules. The rules of this license are both obligations | ||
under that agreement and conditions to your license. | ||
You must not do anything with this software that triggers | ||
a rule that you cannot or will not follow. | ||
|
||
## Copyright | ||
|
||
Each contributor licenses you to do everything with this | ||
software that would otherwise infringe that contributor's | ||
copyright in it. | ||
|
||
## Notices | ||
|
||
You must ensure that everyone who gets a copy of | ||
any part of this software from you, with or without | ||
changes, also gets the text of this license or a link to | ||
<https://blueoakcouncil.org/license/1.0.0>. | ||
|
||
## Excuse | ||
|
||
If anyone notifies you in writing that you have not | ||
complied with [Notices](#notices), you can keep your | ||
license by taking all practical steps to comply within 30 | ||
days after the notice. If you do not do so, your license | ||
ends immediately. | ||
|
||
## Patent | ||
|
||
Each contributor licenses you to do everything with this | ||
software that would otherwise infringe any patent claims | ||
they can license or become able to license. | ||
|
||
## Reliability | ||
|
||
No contributor can revoke this license. | ||
|
||
## No Liability | ||
|
||
***As far as the law allows, this software comes as is, | ||
without any warranty or condition, and no contributor | ||
will be liable to anyone for any damages related to this | ||
software or this license, under any kind of legal claim.*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ opam-version: "2.0" | |
name: "kdl" | ||
version: "0.1.0" | ||
synopsis: "OCaml implementation of the KDL document laguage" | ||
maintainer: "github.com/Bannerets <[email protected]>" | ||
authors: "github.com/Bannerets <[email protected]>" | ||
license: "MIT" | ||
tags: ["configuration-language" "data-serialization-language"] | ||
maintainer: "https://github.com/Bannerets <[email protected]>" | ||
authors: "https://github.com/Bannerets <[email protected]>" | ||
license: "BlueOak-1.0.0" | ||
tags: ["configuration-language" "data-serialization-format"] | ||
homepage: "https://github.com/Bannerets/ocaml-kdl" | ||
bug-reports: "https://github.com/Bannerets/ocaml-kdl/issues" | ||
dev-repo: "git+https://github.com/Bannerets/ocaml-kdl.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ opam-version: "2.0" | |
name: "kdl" | ||
version: "0.1.0" | ||
synopsis: "OCaml implementation of the KDL document laguage" | ||
maintainer: "github.com/Bannerets <[email protected]>" | ||
authors: "github.com/Bannerets <[email protected]>" | ||
license: "MIT" | ||
tags: [ "configuration-language" "data-serialization-language"] | ||
maintainer: "https://github.com/Bannerets <[email protected]>" | ||
authors: "https://github.com/Bannerets <[email protected]>" | ||
license: "BlueOak-1.0.0" | ||
tags: [ "configuration-language" "data-serialization-format"] | ||
homepage: "https://github.com/Bannerets/ocaml-kdl" | ||
bug-reports: "https://github.com/Bannerets/ocaml-kdl/issues" | ||
depends: [ | ||
|
@@ -16,27 +16,30 @@ depends: [ | |
"base-unix" {= "base"} | ||
"camlp-streams" {= "5.0.1" & with-doc} | ||
"cmdliner" {= "1.2.0" & with-doc} | ||
"conf-bash" {= "1" & with-test} | ||
"cppo" {= "1.6.9" & with-doc} | ||
"crunch" {= "3.3.1" & with-doc} | ||
"csexp" {= "1.5.2" & with-test} | ||
"dune" {= "3.11.1"} | ||
"dune-configurator" {= "3.11.1" & with-test} | ||
"dune" {= "3.14.2"} | ||
"dune-configurator" {= "3.14.2" & with-test} | ||
"fmt" {= "0.9.0" & with-doc} | ||
"fpath" {= "0.7.3" & with-doc} | ||
"gen" {= "1.1"} | ||
"jane-street-headers" {= "v0.16.0" & with-test} | ||
"jst-config" {= "v0.16.0" & with-test} | ||
"menhir" {= "20230608"} | ||
"menhirLib" {= "20230608"} | ||
"menhirSdk" {= "20230608"} | ||
"menhir" {= "20231231"} | ||
"menhirCST" {= "20231231"} | ||
"menhirLib" {= "20231231"} | ||
"menhirSdk" {= "20231231"} | ||
"ocaml" {= "4.14.1"} | ||
"ocaml-base-compiler" {= "4.14.1"} | ||
"ocaml-compiler-libs" {= "v0.12.4"} | ||
"ocaml-config" {= "2"} | ||
"ocaml-options-vanilla" {= "1"} | ||
"ocamlbuild" {= "0.14.2" & with-doc} | ||
"ocamlbuild" {= "0.14.3" & with-doc} | ||
"ocamlfind" {= "1.9.6" & with-doc} | ||
"odoc" {= "2.2.1" & with-doc} | ||
"odoc-parser" {= "2.0.0" & with-doc} | ||
"odoc" {= "2.4.1" & with-doc} | ||
"odoc-parser" {= "2.4.1" & with-doc} | ||
"ppx_assert" {= "v0.16.0" & with-test} | ||
"ppx_base" {= "v0.16.0" & with-test} | ||
"ppx_cold" {= "v0.16.0" & with-test} | ||
|
@@ -50,7 +53,8 @@ depends: [ | |
"ppx_inline_test" {= "v0.16.1" & with-test} | ||
"ppx_optcomp" {= "v0.16.0" & with-test} | ||
"ppx_sexp_conv" {= "v0.16.0" & with-test} | ||
"ppxlib" {= "0.31.0"} | ||
"ppxlib" {= "0.32.0"} | ||
"ptime" {= "1.1.0" & with-doc} | ||
"re" {= "1.11.0" & with-test} | ||
"result" {= "1.5" & with-doc} | ||
"sedlex" {= "3.2"} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.