Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
og-rek
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
og-rek
Commits
cbfe0a31
Commit
cbfe0a31
authored
Jun 08, 2014
by
Sean DuBois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement the \x86 TUPLE2 opcode for decoding, operation 'Build a two-tuple
out of the top two items on the stack.'
parent
eb26998f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ogórek.go
ogórek.go
+9
-0
No files found.
ogórek.go
View file @
cbfe0a31
...
...
@@ -205,6 +205,8 @@ func (d Decoder) Decode() (interface{}, error) {
err
=
d
.
loadSetItem
()
case
opTuple
:
err
=
d
.
loadTuple
()
case
opTuple2
:
err
=
d
.
loadTuple2
()
case
opEmptyTuple
:
d
.
push
([]
interface
{}{})
case
opSetitems
:
...
...
@@ -607,6 +609,13 @@ func (d *Decoder) loadTuple() error {
return
nil
}
func
(
d
*
Decoder
)
loadTuple2
()
error
{
k
:=
d
.
marker
()
v
:=
append
([]
interface
{}{},
d
.
stack
[
k
:
]
...
)
d
.
stack
=
append
(
d
.
stack
[
:
k
],
v
)
return
nil
}
func
(
d
*
Decoder
)
obj
()
error
{
return
errNotImplemented
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment