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
a4c1f8f1
Commit
a4c1f8f1
authored
Feb 05, 2019
by
Milhomme Allan
Browse files
Add init function in Token
parent
dfbe78b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
JMP.jar
View file @
a4c1f8f1
No preview for this file type
src/compiler/ClassGenerator.java
View file @
a4c1f8f1
...
...
@@ -98,6 +98,11 @@ public class ClassGenerator
if
(!
existAlready
)
{
classBuilder
.
append
(
Generator
.
getLineJump
());
classBuilder
.
append
(
Generator
.
getLineJump
());
classBuilder
.
append
(
"\tprotected "
);
classBuilder
.
append
(
l
.
header
.
id
.
getName
());
classBuilder
.
append
(
"() {}"
);
classBuilder
.
append
(
Generator
.
getLineJump
());
classBuilder
.
append
(
Generator
.
getLineJump
());
classBuilder
.
append
(
"\t"
);
...
...
src/parser/Token.java
View file @
a4c1f8f1
...
...
@@ -52,7 +52,7 @@ public abstract class Token
private
Token
[]
totalTokens
;
private
Result
[]
ignored
;
void
setDatas
(
int
s
,
int
l
,
int
li
,
int
c
,
String
t
,
Token
[]
tokens
,
Result
[]
ir
)
final
void
setDatas
(
int
s
,
int
l
,
int
li
,
int
c
,
String
t
,
Token
[]
tokens
,
Result
[]
ir
)
{
this
.
start
=
s
;
this
.
length
=
l
;
...
...
@@ -61,8 +61,11 @@ public abstract class Token
this
.
total
=
t
;
this
.
totalTokens
=
tokens
;
this
.
ignored
=
ir
;
this
.
init
();
}
public
void
init
()
{}
public
int
getStart
()
{
return
this
.
start
;
...
...
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