Module: BELParser::Parsers::AST::Sexp

Overview

Sexp defines a module that creates AST nodes using S-expression syntax.

See Also:

Instance Method Summary collapse

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_lineObject



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

#url(*children, **props) ⇒ Object



1059
1060
1061
# File 'lib/bel_parser/parsers/ast/node.rb', line 1059

def url(*children, **props)
  Url.new(children, props)
end

#value(*children, **props) ⇒ Object



999
1000
1001
# File 'lib/bel_parser/parsers/ast/node.rb', line 999

def value(*children, **props)
  Value.new(children, props)
end