Commit a4c1f8f1 authored by Milhomme Allan's avatar Milhomme Allan
Browse files

Add init function in Token

parent dfbe78b5
No preview for this file type
......@@ -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");
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment