RE: [C++] Understanding Pointers and Their Useage 03-14-2014, 04:38 AM
#11
(03-14-2014, 03:14 AM)TheUninvited Wrote: @invisal
In ways you are correct but everything in the syntax of a language is
considered an objectif you create compilers like i have you learn that
because lexical analysis especially when it comes to parsing lexical
tokens specifies everything in the syntax as an object, but other than
that thank you for your feedback
I think using compiler as an argument is irrelevant. We only interest in
semantics of the language and the final output from compiler. Something
in between is irrelevant.
Now, it is hard to argue whether all variable are objects including
primitive type because there is no clear definition of "Object".
In the object-oriented programming paradigm, "Object" refers to
the instance of the class. In this case, no, pointer variable
is not an object. It may point to the object.
Language syntax should be independent of parsing technique. Parsing
technique is enforced by language specification not vise versa. For
example: 1 + 7 = 8. In whatever parsing technique you use, you
need to ensure that the final result meets the specification.




if you create compilers like i have you learn that![[+]](https://sinister.li/images/modern/collapse_collapsed.png)