Created
April 15, 2016 14:56
-
-
Save abargnesi/b3de79cc7e6dd7ad95d3c358bd86fc1e to your computer and use it in GitHub Desktop.
Patch to add keyword arguments to Sexp shortcuts.
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
diff --git a/lib/bel_parser/parsers/ast/node.rb b/lib/bel_parser/parsers/ast/node.rb | |
index 18dfb81..fabd143 100644 | |
--- a/lib/bel_parser/parsers/ast/node.rb | |
+++ b/lib/bel_parser/parsers/ast/node.rb | |
@@ -823,83 +823,83 @@ module BELParser | |
# | |
# @see https://en.wikipedia.org/wiki/S-expression S-expression | |
module Sexp | |
- def nested_statement(*children) | |
+ def nested_statement(*children, **properties) | |
NestedStatement.new(children) | |
end | |
- def simple_statement(*children) | |
+ def simple_statement(*children, **properties) | |
SimpleStatement.new(children) | |
end | |
- def observed_term(*children) | |
+ def observed_term(*children, **properties) | |
ObservedTerm.new(children) | |
end | |
- def statement(*children) | |
+ def statement(*children, **properties) | |
Statement.new(children) | |
end | |
- def subject(*children) | |
+ def subject(*children, **properties) | |
Subject.new(children) | |
end | |
- def object(*children) | |
+ def object(*children, **properties) | |
Object.new(children) | |
end | |
- def relationship(*children) | |
+ def relationship(*children, **properties) | |
Relationship.new(children) | |
end | |
- def term(*children) | |
+ def term(*children, **properties) | |
Term.new(children) | |
end | |
- def function(*children) | |
+ def function(*children, **properties) | |
Function.new(children) | |
end | |
- def argument(*children) | |
+ def argument(*children, **properties) | |
Argument.new(children) | |
end | |
- def parameter(*children) | |
+ def parameter(*children, **properties) | |
Parameter.new(children) | |
end | |
- def prefix(*children) | |
+ def prefix(*children, **properties) | |
Prefix.new(children) | |
end | |
- def name(*children) | |
+ def name(*children, **properties) | |
Name.new(children) | |
end | |
- def value(*children) | |
+ def value(*children, **properties) | |
Value.new(children) | |
end | |
- def identifier(*children) | |
- Identifier.new(children) | |
+ def identifier(*children, **properties) | |
+ Identifier.new(children, properties) | |
end | |
- def string(*children) | |
+ def string(*children, **properties) | |
String.new(children) | |
end | |
- def list(*children) | |
+ def list(*children, **properties) | |
List.new(children) | |
end | |
- def list_item(*children) | |
+ def list_item(*children, **properties) | |
ListItem.new(children) | |
end | |
- def comment(*children) | |
+ def comment(*children, **properties) | |
Comment.new(children) | |
end | |
- def comment_line(*children) | |
+ def comment_line(*children, **properties) | |
CommentLine.new(children) | |
end | |
@@ -907,35 +907,35 @@ module BELParser | |
BlankLine.new | |
end | |
- def set(*children) | |
+ def set(*children, **properties) | |
Set.new(children) | |
end | |
- def document_property(*children) | |
+ def document_property(*children, **properties) | |
DocumentProperty.new(children) | |
end | |
- def annotation_definition(*children) | |
+ def annotation_definition(*children, **properties) | |
AnnotationDefinition.new(children) | |
end | |
- def namespace_definition(*children) | |
+ def namespace_definition(*children, **properties) | |
NamespaceDefinition.new(children) | |
end | |
- def keyword(*children) | |
+ def keyword(*children, **properties) | |
Keyword.new(children) | |
end | |
- def domain(*children) | |
+ def domain(*children, **properties) | |
Domain.new(children) | |
end | |
- def url(*children) | |
+ def url(*children, **properties) | |
Url.new(children) | |
end | |
- def pattern(*children) | |
+ def pattern(*children, **properties) | |
Pattern.new(children) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment