Class: SbuilderSexp::OperatorExpression
- Inherits:
-
AbstactExpression
- Object
- Treetop::Runtime::SyntaxNode
- Root
- AbstactExpression
- SbuilderSexp::OperatorExpression
- Defined in:
- lib/parser/parser_nodes.rb
Instance Method Summary collapse
-
#arguments ⇒ Expression:Array
List or arguments.
-
#expression_val ⇒ String
‘AbstactExpression` traverse yields in-order.
-
#expressions ⇒ Array
Empty array to quit recursion in ‘AbstactExpression’.
- #operator_name ⇒ Object
- #record_field ⇒ Object
- #record_field_node ⇒ Object
Methods inherited from AbstactExpression
#expression_postfix, #expression_prefix, #has_rhs, #lhs_node, #node_value, #rhs_node, #traverse
Methods inherited from Treetop::Runtime::SyntaxNode
#node_type, #node_value, #recursive_inject, #recursive_inject_parent, #recursive_select, #value
Instance Method Details
#arguments ⇒ Expression:Array
Returns list or arguments.
272 273 274 |
# File 'lib/parser/parser_nodes.rb', line 272 def arguments recursive_select( SbuilderSexp::Expression ) end |
#expression_val ⇒ String
‘AbstactExpression` traverse yields in-order
264 265 266 |
# File 'lib/parser/parser_nodes.rb', line 264 def expression_val operator_name end |
#expressions ⇒ Array
Returns empty array to quit recursion in ‘AbstactExpression’.
287 288 289 |
# File 'lib/parser/parser_nodes.rb', line 287 def expressions [] end |
#operator_name ⇒ Object
268 269 270 |
# File 'lib/parser/parser_nodes.rb', line 268 def operator_name recursive_select( SbuilderSexp::Identifier ).first.node_value end |
#record_field ⇒ Object
279 280 281 282 283 |
# File 'lib/parser/parser_nodes.rb', line 279 def record_field node = record_field_node return nil unless node node.node_value end |
#record_field_node ⇒ Object
276 277 278 |
# File 'lib/parser/parser_nodes.rb', line 276 def record_field_node recursive_select( SbuilderSexp::RecordField ).first end |