-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The peg file is imported from https://github.com/naoina/toml/blob/master/parse.peg ( e401e4e ) Copyright (c) 2014 Naoya Inada <naoina@kuune.org>
- Loading branch information
Showing
12 changed files
with
662 additions
and
1 deletion.
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 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,2 @@ | ||
--sort=no | ||
--fields=+K{nth}{end}{line} |
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,30 @@ | ||
title input.toml /^title = "TOML Example"$/;" qkye line:5 | ||
dog."tater.man" input.toml /^[dog."tater.man"]$/;" table line:7 end:10 | ||
type.name input.toml /^type.name = "pug"$/;" qkye line:8 table:dog."tater.man" | ||
x input.toml /^x = 1$/;" qkye line:9 table:dog."tater.man" | ||
owner input.toml /^[owner]$/;" table line:11 end:14 | ||
name input.toml /^name = "Tom Preston-Werner"$/;" qkye line:12 table:owner | ||
dob input.toml /^dob = 1979-05-27T07:32:00-08:00 # First class dates$/;" qkye line:13 table:owner | ||
database input.toml /^[database]$/;" table line:15 end:20 | ||
server input.toml /^server = "192.168.1.1"$/;" qkye line:16 table:database | ||
ports input.toml /^ports = [ 8001, 8001, 8002 ]$/;" qkye line:17 table:database | ||
connection_max input.toml /^connection_max = 5000$/;" qkye line:18 table:database | ||
enabled input.toml /^enabled = true$/;" qkye line:19 table:database | ||
servers input.toml /^[servers]$/;" table line:21 end:23 | ||
servers.alpha input.toml /^ [servers.alpha]$/;" table line:24 end:27 | ||
ip input.toml /^ ip = "10.0.0.1"$/;" qkye line:25 table:servers.alpha | ||
dc input.toml /^ dc = "eqdc10"$/;" qkye line:26 table:servers.alpha | ||
servers.beta input.toml /^ [servers.beta]$/;" table line:28 end:31 | ||
ip input.toml /^ ip = "10.0.0.2"$/;" qkye line:29 table:servers.beta | ||
dc input.toml /^ dc = "eqdc10"$/;" qkye line:30 table:servers.beta | ||
clients input.toml /^[clients]$/;" table line:32 end:40 | ||
data input.toml /^data = [ ["gamma", "delta"], [1, 2] ]$/;" qkye line:33 table:clients | ||
hosts input.toml /^hosts = [$/;" qkye line:36 table:clients | ||
products input.toml /^[[products]] # 0$/;" arraytable line:41 end:44 nth:0 | ||
name input.toml /^name = "Hammer"$/;" qkye line:42 arraytable:products | ||
sku input.toml /^sku = 738594937$/;" qkye line:43 arraytable:products | ||
products input.toml /^[[products]] # 1$/;" arraytable line:45 end:46 nth:1 | ||
products input.toml /^[[products]] # 2$/;" arraytable line:47 end:50 nth:2 | ||
name input.toml /^name = "Nail"$/;" qkye line:48 arraytable:products | ||
sku input.toml /^sku = 284758393$/;" qkye line:49 arraytable:products | ||
color input.toml /^color = "gray"$/;" qkye line:50 arraytable:products |
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,50 @@ | ||
## Taken from https://toml.io/en/v0.5.0#example | ||
|
||
# This is a TOML document. | ||
|
||
title = "TOML Example" | ||
|
||
[dog."tater.man"] | ||
type.name = "pug" | ||
x = 1 | ||
|
||
[owner] | ||
name = "Tom Preston-Werner" | ||
dob = 1979-05-27T07:32:00-08:00 # First class dates | ||
|
||
[database] | ||
server = "192.168.1.1" | ||
ports = [ 8001, 8001, 8002 ] | ||
connection_max = 5000 | ||
enabled = true | ||
|
||
[servers] | ||
|
||
# Indentation (tabs and/or spaces) is allowed but not required | ||
[servers.alpha] | ||
ip = "10.0.0.1" | ||
dc = "eqdc10" | ||
|
||
[servers.beta] | ||
ip = "10.0.0.2" | ||
dc = "eqdc10" | ||
|
||
[clients] | ||
data = [ ["gamma", "delta"], [1, 2] ] | ||
|
||
# Line breaks are OK when inside arrays | ||
hosts = [ | ||
"alpha", | ||
"omega" | ||
] | ||
|
||
[[products]] # 0 | ||
name = "Hammer" | ||
sku = 738594937 | ||
|
||
[[products]] # 1 | ||
|
||
[[products]] # 2 | ||
name = "Nail" | ||
sku = 284758393 | ||
color = "gray" |
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
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,5 +2,6 @@ varlink.[ch] | |
kotlin.[ch] | ||
thrift.[ch] | ||
elm.[ch] | ||
toml.[ch] | ||
|
||
*.pego |
Oops, something went wrong.