SymBeg
represents the beginning of a symbol literal.
:symbol
SymBeg
is also used for dynamic symbols, as in:
:"symbol"
Finally, SymBeg
is also used for symbols using the %s syntax, as in:
%s[symbol]
The value of this node is a string. In
most cases (as in the first example above) it will contain just “:”. In
the case of dynamic symbols it will contain “:‘” or “:"”. In
the case of %s symbols, it will contain the start of the symbol including the %s and the delimiter.
the beginning of the symbol
def initialize(value:, location:) @value = value @location = location endPublic Instance Methods Source
def ===(other) other.is_a?(SymBeg) && value === other.value endSource
def accept(visitor) visitor.visit_symbeg(self) endSource
def copy(value: nil, location: nil) SymBeg.new( value: value || self.value, location: location || self.location ) endSource
def deconstruct_keys(_keys) { value: value, location: location } end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4