-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
170 additions
and
6 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
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,46 @@ | ||
import { StaticCode } from './opcode' | ||
|
||
/** | ||
* Concatenates two strings. disabled. | ||
*/ | ||
export class OP_CAT extends StaticCode { | ||
constructor () { | ||
super(0x7e, 'OP_CAT') | ||
} | ||
} | ||
|
||
/** | ||
* Returns a section of a string. disabled. | ||
*/ | ||
export class OP_SUBSTR extends StaticCode { | ||
constructor () { | ||
super(0x7f, 'OP_SUBSTR') | ||
} | ||
} | ||
|
||
/** | ||
* Keeps only characters left of the specified point in a string. disabled. | ||
*/ | ||
export class OP_LEFT extends StaticCode { | ||
constructor () { | ||
super(0x80, 'OP_LEFT') | ||
} | ||
} | ||
|
||
/** | ||
* Keeps only characters right of the specified point in a string. disabled. | ||
*/ | ||
export class OP_RIGHT extends StaticCode { | ||
constructor () { | ||
super(0x81, 'OP_RIGHT') | ||
} | ||
} | ||
|
||
/** | ||
* Pushes the string length of the top element of the stack (without popping it). | ||
*/ | ||
export class OP_SIZE extends StaticCode { | ||
constructor () { | ||
super(0x82, 'OP_SIZE') | ||
} | ||
} |