mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
core/asm/compiler: correct comments typo
core/asm/compiler: correct comments typo
This commit is contained in:
parent
ea89f40f0d
commit
aebafa73ff
1 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ func NewCompiler(debug bool) *Compiler {
|
||||||
// the compiler.
|
// the compiler.
|
||||||
//
|
//
|
||||||
// feed is the first pass in the compile stage as it
|
// feed is the first pass in the compile stage as it
|
||||||
// collect the used labels in the program and keeps a
|
// collects the used labels in the program and keeps a
|
||||||
// program counter which is used to determine the locations
|
// program counter which is used to determine the locations
|
||||||
// of the jump dests. The labels can than be used in the
|
// of the jump dests. The labels can than be used in the
|
||||||
// second stage to push labels and determine the right
|
// second stage to push labels and determine the right
|
||||||
|
|
@ -120,7 +120,7 @@ func (c *Compiler) next() token {
|
||||||
return token
|
return token
|
||||||
}
|
}
|
||||||
|
|
||||||
// compile line compiles a single line instruction e.g.
|
// compileLine compiles a single line instruction e.g.
|
||||||
// "push 1", "jump @label".
|
// "push 1", "jump @label".
|
||||||
func (c *Compiler) compileLine() error {
|
func (c *Compiler) compileLine() error {
|
||||||
n := c.next()
|
n := c.next()
|
||||||
|
|
@ -162,7 +162,7 @@ func (c *Compiler) compileNumber(element token) (int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// compileElement compiles the element (push & label or both)
|
// compileElement compiles the element (push & label or both)
|
||||||
// to a binary representation and may error if incorrect statements
|
// to a binary representation and return error if incorrect statements
|
||||||
// where fed.
|
// where fed.
|
||||||
func (c *Compiler) compileElement(element token) error {
|
func (c *Compiler) compileElement(element token) error {
|
||||||
// check for a jump. jumps must be read and compiled
|
// check for a jump. jumps must be read and compiled
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue