Let's begin with some definitions:
- An
expression
is a construct that produces (returns) a value. - A
literal
is a notation for representing a fixed value.
I could assume the literal is a expression that returns exactly one value. E.g. the literal 1
is an expression that returns the value 1.
Is there anything wrong in my approach or does being a literal always imply being an expression?
Thank you for clarification.