Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
compile out seps
  • Loading branch information
ingydotnet committed May 16, 2014
1 parent 4287964 commit ab95395
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 18 deletions.
45 changes: 35 additions & 10 deletions testml.pgx.json
Expand Up @@ -169,11 +169,24 @@
".rgx" : "\\((?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*"
},
{
"+min" : 0,
".ref" : "call_argument",
".sep" : {
".rgx" : "(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*,(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*"
}
"+max" : 1,
"-flat" : 1,
".all" : [
{
".ref" : "call_argument"
},
{
"+min" : 0,
".all" : [
{
".rgx" : "(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*,(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*"
},
{
".ref" : "call_argument"
}
]
}
]
},
{
".rgx" : "(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*\\)"
Expand Down Expand Up @@ -375,11 +388,23 @@
".rgx" : "([a-zA-Z]\\w*)"
},
"function_variables" : {
"+min" : 1,
".ref" : "function_variable",
".sep" : {
".rgx" : "(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*,(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*"
}
"-flat" : 1,
".all" : [
{
".ref" : "function_variable"
},
{
"+min" : 0,
".all" : [
{
".rgx" : "(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*,(?:[\\ \\t]|\\r?\\n|\\#.*\\r?\\n)*"
},
{
".ref" : "function_variable"
}
]
}
]
},
"lines_point" : {
".all" : [
Expand Down
23 changes: 15 additions & 8 deletions testml.pgx.yaml
Expand Up @@ -81,10 +81,14 @@ call_argument:
call_argument_list:
.all:
- .rgx: \((?:[\ \t]|\r?\n|\#.*\r?\n)*
- +min: 0
.ref: call_argument
.sep:
.rgx: (?:[\ \t]|\r?\n|\#.*\r?\n)*,(?:[\ \t]|\r?\n|\#.*\r?\n)*
- +max: 1
-flat: 1
.all:
- .ref: call_argument
- +min: 0
.all:
- .rgx: (?:[\ \t]|\r?\n|\#.*\r?\n)*,(?:[\ \t]|\r?\n|\#.*\r?\n)*
- .ref: call_argument
- .rgx: (?:[\ \t]|\r?\n|\#.*\r?\n)*\)
call_call:
.all:
Expand Down Expand Up @@ -175,10 +179,13 @@ function_start:
function_variable:
.rgx: ([a-zA-Z]\w*)
function_variables:
+min: 1
.ref: function_variable
.sep:
.rgx: (?:[\ \t]|\r?\n|\#.*\r?\n)*,(?:[\ \t]|\r?\n|\#.*\r?\n)*
-flat: 1
.all:
- .ref: function_variable
- +min: 0
.all:
- .rgx: (?:[\ \t]|\r?\n|\#.*\r?\n)*,(?:[\ \t]|\r?\n|\#.*\r?\n)*
- .ref: function_variable
lines_point:
.all:
- .ref: point_marker
Expand Down

0 comments on commit ab95395

Please sign in to comment.