maj
This commit is contained in:
28
DEV3.4/ControleMachine/test/Separator.java
Normal file
28
DEV3.4/ControleMachine/test/Separator.java
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Enum pour représenter les "séparateurs" dans le programme.
|
||||
*
|
||||
* @author Florent Madelaine
|
||||
*/
|
||||
|
||||
|
||||
public enum Separator {
|
||||
LB ("("),
|
||||
RB (")"),
|
||||
COMMA (","),
|
||||
SCL (";"),
|
||||
LCB ("{"),
|
||||
RCB ("}"),
|
||||
LSB ("["),
|
||||
RSB ("]");
|
||||
|
||||
private final String str; // String in original program
|
||||
|
||||
private Separator(String str){
|
||||
this.str=str;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return this.str;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user