forked from robovm/soot
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added handling of strictfp to Jimple parser
- Loading branch information
Jennifer Lhoták
committed
Sep 26, 2005
1 parent
27911ab
commit 4ecf028
Showing
13 changed files
with
1,364 additions
and
1,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,013 changes: 515 additions & 498 deletions
1,013
generated/sablecc/soot/jimple/parser/lexer/Lexer.java
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
83 changes: 83 additions & 0 deletions
83
generated/sablecc/soot/jimple/parser/node/AStrictfpModifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* This file was generated by SableCC (http://www.sablecc.org/). */ | ||
|
||
package soot.jimple.parser.node; | ||
|
||
import java.util.*; | ||
import soot.jimple.parser.analysis.*; | ||
|
||
public final class AStrictfpModifier extends PModifier | ||
{ | ||
private TStrictfp _strictfp_; | ||
|
||
public AStrictfpModifier() | ||
{ | ||
} | ||
|
||
public AStrictfpModifier( | ||
TStrictfp _strictfp_) | ||
{ | ||
setStrictfp(_strictfp_); | ||
|
||
} | ||
public Object clone() | ||
{ | ||
return new AStrictfpModifier( | ||
(TStrictfp) cloneNode(_strictfp_)); | ||
} | ||
|
||
public void apply(Switch sw) | ||
{ | ||
((Analysis) sw).caseAStrictfpModifier(this); | ||
} | ||
|
||
public TStrictfp getStrictfp() | ||
{ | ||
return _strictfp_; | ||
} | ||
|
||
public void setStrictfp(TStrictfp node) | ||
{ | ||
if(_strictfp_ != null) | ||
{ | ||
_strictfp_.parent(null); | ||
} | ||
|
||
if(node != null) | ||
{ | ||
if(node.parent() != null) | ||
{ | ||
node.parent().removeChild(node); | ||
} | ||
|
||
node.parent(this); | ||
} | ||
|
||
_strictfp_ = node; | ||
} | ||
|
||
public String toString() | ||
{ | ||
return "" | ||
+ toString(_strictfp_); | ||
} | ||
|
||
void removeChild(Node child) | ||
{ | ||
if(_strictfp_ == child) | ||
{ | ||
_strictfp_ = null; | ||
return; | ||
} | ||
|
||
} | ||
|
||
void replaceChild(Node oldChild, Node newChild) | ||
{ | ||
if(_strictfp_ == oldChild) | ||
{ | ||
setStrictfp((TStrictfp) newChild); | ||
return; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* This file was generated by SableCC (http://www.sablecc.org/). */ | ||
|
||
package soot.jimple.parser.node; | ||
|
||
import soot.jimple.parser.analysis.*; | ||
|
||
public final class TStrictfp extends Token | ||
{ | ||
public TStrictfp() | ||
{ | ||
super.setText("strictfp"); | ||
} | ||
|
||
public TStrictfp(int line, int pos) | ||
{ | ||
super.setText("strictfp"); | ||
setLine(line); | ||
setPos(pos); | ||
} | ||
|
||
public Object clone() | ||
{ | ||
return new TStrictfp(getLine(), getPos()); | ||
} | ||
|
||
public void apply(Switch sw) | ||
{ | ||
((Analysis) sw).caseTStrictfp(this); | ||
} | ||
|
||
public void setText(String text) | ||
{ | ||
throw new RuntimeException("Cannot change TStrictfp text."); | ||
} | ||
} |
Oops, something went wrong.