Sha256: b22a6edb9fce2fb8d7a35f387d6d9cb032c183c58f3251d80c82df74dad597a9
Contents?: true
Size: 604 Bytes
Versions: 17
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true require_relative 'lox_node' module Loxxy module Ast # This AST node represents a mention of a variable class LoxVariableExpr < LoxNode # @return [String] variable name attr_reader :name # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream. # @param aName [String] name of the variable def initialize(aPosition, aName) super(aPosition) @name = aName end define_accept # Add `accept` method as found in Visitor design pattern end # class end # module end # module
Version data entries
17 entries across 17 versions & 1 rubygems