Kipper
Kipper copied to clipboard
[Feature] Implement dot notation member-access syntax `parent.field`
Is there an existing proposal for this?
- [X] I have searched the existing issues
This feature does not exist in the latest version
- [X] I am using the latest version
Proposal
Implement member accessing syntax that allows accessing member items of variables. This should be implemented to allow the usage of interfaces, classes and member fields on Kipper variables.
The syntax would look like this:
parent.field
Exact behaviour you want
- [ ] Implement syntax in Kipper.g4 and allow the parser to recognise the syntax.
- [ ] Implement type checking and semantic checking to validate whether the type is an object and can have child fields.
- [ ] Implement code translation for TypeScript, which allows the translation of these variables.