Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
INF222 - V24 - Obligatory 2 - Skeleton
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mikhail.Barash
INF222 - V24 - Obligatory 2 - Skeleton
Commits
3eeea06d
Commit
3eeea06d
authored
1 year ago
by
Mikhail.Barash
Browse files
Options
Downloads
Patches
Plain Diff
minor bug fixes in the comments
parent
8961b923
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parser.ts
+2
-2
2 additions, 2 deletions
src/parser.ts
with
2 additions
and
2 deletions
src/parser.ts
+
2
−
2
View file @
3eeea06d
...
...
@@ -292,12 +292,12 @@ export function parseProgram(tokens: Token[]): AstNode[] {
left
,
// 5.2. A property that represents the operator of the multiplicative expression.
// TODO: YOUR CODE HERE
// 5.3. A property that represents the right opera
tor
of the multiplicative expression.
// 5.3. A property that represents the right opera
nd
of the multiplicative expression.
right
,
// 5.4. A property `nodeType` which is (???what???).
nodeType
:
/* TODO: YOUR CODE HERE */
,
};
// 2.2. Make an iteration of the loop to process the possible remaining part of the
multiplicativ
e expression.
// 2.2. Make an iteration of the loop to process the possible remaining part of the
addition-lik
e expression.
}
// 5.5. Return the AST node.
return
left
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment