Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Milhomme Allan
JavaMetaParser
Commits
4308ea96
Commit
4308ea96
authored
Oct 19, 2018
by
Custom2043
Browse files
fix
parent
d4a447aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
JMP.jar
View file @
4308ea96
No preview for this file type
src/compiler/Compiler.java
View file @
4308ea96
...
@@ -157,14 +157,16 @@ public class Compiler
...
@@ -157,14 +157,16 @@ public class Compiler
boolean
foundAfterThisLine
=
false
,
tokenTransient
=
false
,
found
=
false
;
boolean
foundAfterThisLine
=
false
,
tokenTransient
=
false
,
found
=
false
;
for
(
Line
l
:
lines
)
for
(
Line
l
:
lines
)
{
if
(
l
==
currentLine
)
if
(
l
==
currentLine
)
foundAfterThisLine
=
true
;
foundAfterThisLine
=
true
;
else
if
(
l
.
header
.
id
.
getName
().
equals
(
tokenSearch
.
id
.
getName
()))
if
(
l
.
header
.
id
.
getName
().
equals
(
tokenSearch
.
id
.
getName
()))
{
{
tokenTransient
=
l
.
header
.
trans
!=
null
;
tokenTransient
=
l
.
header
.
trans
!=
null
;
found
=
true
;
found
=
true
;
break
;
break
;
}
}
}
if
(!
found
)
if
(!
found
)
report
(
new
Info
(
InfoModel
.
tokenUndeclared
,
token
));
report
(
new
Info
(
InfoModel
.
tokenUndeclared
,
token
));
else
if
(
first
&&
foundAfterThisLine
)
else
if
(
first
&&
foundAfterThisLine
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment