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
Compare revisions
master to 7f5c9e5369d831a1e719c239761faa7d3832279e
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
Mikhail.Barash/inf-222-v-24-obligatory-2-skeleton
Select target project
No results found
7f5c9e5369d831a1e719c239761faa7d3832279e
Select Git revision
Branches
master
Swap
Target
Rolf.Glomsrud/INF222-Obligatory2-Skeleton
Select target project
Bjorn.Hagen/inf-222-v-24-obligatory-2-skeleton
M.Fjeldstad/inf-222-v-24-obligatory-2-skeleton
Rolf.Glomsrud/INF222-Obligatory2-Skeleton
Mikhail.Barash/inf-222-v-24-obligatory-2-skeleton
Mahmod.Mohamed/inf-222-v-24-obligatory-2-skeleton
Kevinas.Pliuskus/inf-222-v-24-obligatory-2-skeleton
Markus.Halsvik/inf-222-v-24-obligatory-2-skeleton
torje.sylta/inf-222-v-24-obligatory-2-skeleton
Jens.Brown.Eriksen/inf-222-v-24-obligatory-2-skeleton
samuel.sjoen/inf-222-v-24-obligatory-2-skeleton
Magnus.Aune/inf-222-v-24-obligatory-2-skeleton
V.Larsen/inf-222-v-24-obligatory-2-skeleton
Lauritz.Angeltveit/inf-222-v-24-obligatory-2-skeleton
13 results
master
Select Git revision
Branches
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
minor bug fixes in the comments
· 3eeea06d
Mikhail.Barash
authored
1 year ago
3eeea06d
fixed bug (removed line 159, because it was left there from the complete solution)
· 7f5c9e53
Mikhail.Barash
authored
1 year ago
7f5c9e53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parser.ts
+3
-3
3 additions, 3 deletions
src/parser.ts
with
3 additions
and
3 deletions
src/parser.ts
View file @
7f5c9e53
...
...
@@ -156,7 +156,7 @@ export function parseProgram(tokens: Token[]): AstNode[] {
// 3.1.3.1.3. Property `nodeType` should be `PhysicalUnit`
// TODO: YOUR CODE HERE
};
// 3.1.4. Otherwise, if that value is one of the (???what???) units, then:
}
else
if
(
/* TODO: YOUR CODE HERE */
)
{
// TODO: YOUR CODE HERE
...
...
@@ -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.