class Pratt::PrefixExpression

Overview

A prefix unary arithmetic expression like "!a" or "-b".

Included Modules

Defined in:

expressions/prefix_expression.cr

Constructors

Instance Method Summary

Instance methods inherited from module Pratt::TokenType

punctuator(token : Type) : Char | Nil punctuator

Instance methods inherited from module Pratt::Expression

print : String print

Constructor Detail

def self.new(m_operator : TokenType::Type, m_right : Expression) #

[View source]

Instance Method Detail

def print : String #
Description copied from module Pratt::Expression

Pretty-print the expression to a string. */


[View source]