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
d014bb4a
Commit
d014bb4a
authored
Jun 29, 2014
by
Sean DuBois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement R REDUCE opcode
parent
607c0487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ogórek.go
ogórek.go
+10
-2
No files found.
ogórek.go
View file @
d014bb4a
...
@@ -399,8 +399,16 @@ func (d *Decoder) loadBinPersid() error {
...
@@ -399,8 +399,16 @@ func (d *Decoder) loadBinPersid() error {
return
errNotImplemented
return
errNotImplemented
}
}
type
Thunk
struct
{
class
Class
args
[]
interface
{}
}
func
(
d
*
Decoder
)
reduce
()
error
{
func
(
d
*
Decoder
)
reduce
()
error
{
return
errNotImplemented
args
:=
d
.
pop
()
.
([]
interface
{})
class
:=
d
.
pop
()
.
(
Class
)
d
.
stack
=
append
(
d
.
stack
,
Thunk
{
class
:
class
,
args
:
args
})
return
nil
}
}
func
decodeStringEscape
(
b
[]
byte
)
string
{
func
decodeStringEscape
(
b
[]
byte
)
string
{
...
@@ -541,7 +549,7 @@ func (d *Decoder) global() error {
...
@@ -541,7 +549,7 @@ func (d *Decoder) global() error {
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
return
nil
}
}
d
.
stack
=
append
(
d
.
stack
,
&
Class
{
module
:
string
(
module
),
name
:
string
(
name
)})
d
.
stack
=
append
(
d
.
stack
,
Class
{
module
:
string
(
module
),
name
:
string
(
name
)})
return
nil
return
nil
}
}
...
...
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