Module: BELParser::Parsers::AST::Sexp
- Included in:
- Language::TermTransformation, Language::Version1_0::Upgrades::ActivityTransformation, Language::Version1_0::Upgrades::FusionTransformation, Language::Version1_0::Upgrades::ProteinModificationTransformation, Language::Version1_0::Upgrades::TranslocationTransformation, Language::Version1_0::Upgrades::VariationTransformation, Language::Version2_0::Upgrades::Transformation, BELScript::DefineAnnotation::Parser, BELScript::DefineNamespace::Parser, BELScript::Set::Parser, BELScript::SetDocument::Parser, BELScript::Unset::Parser, Common::BlankLine::Parser, Common::CommentLine::Parser, Common::Function::Parser, Common::Identifier::Parser, Common::List::Parser, Common::String::Parser, Expression::Comment::Parser, Expression::NestedStatement::Parser, Expression::ObservedTerm::Parser, Expression::Parameter::Parser, Expression::Relationship::Parser, Expression::SimpleStatement::Parser, Expression::Term::Parser
- Defined in:
- lib/bel_parser/parsers/ast/node.rb
Overview
Sexp defines a module that creates AST nodes using S-expression syntax.
Instance Method Summary collapse
- #annotation_definition(*children, **props) ⇒ Object
- #argument(*children, **props) ⇒ Object
- #blank_line ⇒ Object
- #comment(*children, **props) ⇒ Object
- #comment_line(*children, **props) ⇒ Object
- #document_property(*children, **props) ⇒ Object
- #domain(*children, **props) ⇒ Object
- #function(*children, **props) ⇒ Object
- #identifier(*children, **props) ⇒ Object
- #keyword(*children, **props) ⇒ Object
- #list(*children, **props) ⇒ Object
- #list_item(*children, **props) ⇒ Object
- #name(*children, **props) ⇒ Object
- #namespace_definition(*children, **props) ⇒ Object
- #nested_statement(*children, **props) ⇒ Object
- #object(*children, **props) ⇒ Object
- #observed_term(*children, **props) ⇒ Object
- #parameter(*children, **props) ⇒ Object
- #pattern(*children, **props) ⇒ Object
- #prefix(*children, **props) ⇒ Object
- #relationship(*children, **props) ⇒ Object
- #set(*children, **props) ⇒ Object
- #simple_statement(*children, **props) ⇒ Object
- #statement(*children, **props) ⇒ Object
- #string(*children, **props) ⇒ Object
- #subject(*children, **props) ⇒ Object
- #term(*children, **props) ⇒ Object
- #unset(*children, **props) ⇒ Object
- #uri(*children, **props) ⇒ Object
- #url(*children, **props) ⇒ Object
- #value(*children, **props) ⇒ Object
Instance Method Details
#annotation_definition(*children, **props) ⇒ Object
1043 1044 1045 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1043 def annotation_definition(*children, **props) AnnotationDefinition.new(children, props) end |
#argument(*children, **props) ⇒ Object
983 984 985 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 983 def argument(*children, **props) Argument.new(children, props) end |
#blank_line ⇒ Object
1027 1028 1029 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1027 def blank_line BlankLine.new([], complete: true) end |
#comment(*children, **props) ⇒ Object
1019 1020 1021 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1019 def comment(*children, **props) Comment.new(children, props) end |
#comment_line(*children, **props) ⇒ Object
1023 1024 1025 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1023 def comment_line(*children, **props) CommentLine.new(children, props) end |
#document_property(*children, **props) ⇒ Object
1039 1040 1041 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1039 def document_property(*children, **props) DocumentProperty.new(children, props) end |
#domain(*children, **props) ⇒ Object
1055 1056 1057 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1055 def domain(*children, **props) Domain.new(children, props) end |
#function(*children, **props) ⇒ Object
979 980 981 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 979 def function(*children, **props) Function.new(children, props) end |
#identifier(*children, **props) ⇒ Object
1003 1004 1005 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1003 def identifier(*children, **props) Identifier.new(children, props) end |
#keyword(*children, **props) ⇒ Object
1051 1052 1053 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1051 def keyword(*children, **props) Keyword.new(children, props) end |
#list(*children, **props) ⇒ Object
1011 1012 1013 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1011 def list(*children, **props) List.new(children, props) end |
#list_item(*children, **props) ⇒ Object
1015 1016 1017 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1015 def list_item(*children, **props) ListItem.new(children, props) end |
#name(*children, **props) ⇒ Object
995 996 997 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 995 def name(*children, **props) Name.new(children, props) end |
#namespace_definition(*children, **props) ⇒ Object
1047 1048 1049 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1047 def namespace_definition(*children, **props) NamespaceDefinition.new(children, props) end |
#nested_statement(*children, **props) ⇒ Object
947 948 949 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 947 def nested_statement(*children, **props) NestedStatement.new(children, props) end |
#object(*children, **props) ⇒ Object
967 968 969 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 967 def object(*children, **props) Object.new(children, props) end |
#observed_term(*children, **props) ⇒ Object
955 956 957 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 955 def observed_term(*children, **props) ObservedTerm.new(children, props) end |
#parameter(*children, **props) ⇒ Object
987 988 989 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 987 def parameter(*children, **props) Parameter.new(children, props) end |
#pattern(*children, **props) ⇒ Object
1067 1068 1069 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1067 def pattern(*children, **props) Pattern.new(children, props) end |
#prefix(*children, **props) ⇒ Object
991 992 993 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 991 def prefix(*children, **props) Prefix.new(children, props) end |
#relationship(*children, **props) ⇒ Object
971 972 973 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 971 def relationship(*children, **props) Relationship.new(children, props) end |
#set(*children, **props) ⇒ Object
1031 1032 1033 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1031 def set(*children, **props) Set.new(children, props) end |
#simple_statement(*children, **props) ⇒ Object
951 952 953 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 951 def simple_statement(*children, **props) SimpleStatement.new(children, props) end |
#statement(*children, **props) ⇒ Object
959 960 961 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 959 def statement(*children, **props) Statement.new(children, props) end |
#string(*children, **props) ⇒ Object
1007 1008 1009 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1007 def string(*children, **props) String.new(children, props) end |
#subject(*children, **props) ⇒ Object
963 964 965 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 963 def subject(*children, **props) Subject.new(children, props) end |
#term(*children, **props) ⇒ Object
975 976 977 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 975 def term(*children, **props) Term.new(children, props) end |
#unset(*children, **props) ⇒ Object
1035 1036 1037 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1035 def unset(*children) Unset.new(children) end |
#uri(*children, **props) ⇒ Object
1063 1064 1065 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 1063 def uri(*children, **props) Uri.new(children, props) end |