Skip to content

draft of classes#19

Open
milenanedeljkovic wants to merge 59 commits into
mainfrom
milenanedeljkovic-patch-2
Open

draft of classes#19
milenanedeljkovic wants to merge 59 commits into
mainfrom
milenanedeljkovic-patch-2

Conversation

@milenanedeljkovic

Copy link
Copy Markdown
Collaborator

No description provided.

milenanedeljkovic and others added 30 commits November 9, 2021 11:31
draft of classes, AGAIN
beginning of AST class, updated classes from the last commit
Wrote setters and Getters for all classes inheriting from Statement.
I added methods get() and set() to every class inherited from Expression in ast.hpp file
+ correction of few typos found
I followed the tutorial by Ruslan Spivak "Let's Build a Tutorial". The tutorial is given in Python, so I have been working on converting the code to C++. This is not a completely debugged version in C++, but the Python code works. Although this is not directly relevant to the project, this helped me understand parsing, tokenizing and lexical analysis, which will be useful towards the completion of the rest of the project.
I added a cache to store the changes in variables. I created constructors where the cache is passed by reference so different blocks and operations all modify one cache.
- cases instead of ifs in get_type functions from dasha
- all Expressions and Statements that are arguments in other classes are passed by reference
I copied the already existing classes into separate cpp/hpp files in order to avoid git conflicts.
mattea777 and others added 29 commits November 18, 2021 11:32
for elena to put into the group week 3 report
Workspace up to date w reports
…go over it again because it will be important for variable tracking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants