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
bbdf657c
Commit
bbdf657c
authored
Jun 30, 2014
by
Sean DuBois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errors from code review found by kisielk on PR #10 against kisielk/og-rek
parent
1fc6c76e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
ogórek.go
ogórek.go
+6
-7
No files found.
ogórek.go
View file @
bbdf657c
...
...
@@ -399,15 +399,15 @@ func (d *Decoder) loadBinPersid() error {
return
errNotImplemented
}
type
Thunk
struct
{
C
lass
Class
type
Call
struct
{
C
allable
Class
Args
[]
interface
{}
}
func
(
d
*
Decoder
)
reduce
()
error
{
args
:=
d
.
pop
()
.
([]
interface
{})
class
:=
d
.
pop
()
.
(
Class
)
d
.
stack
=
append
(
d
.
stack
,
Thunk
{
Class
:
class
,
Args
:
args
})
d
.
stack
=
append
(
d
.
stack
,
Call
{
Callable
:
class
,
Args
:
args
})
return
nil
}
...
...
@@ -536,18 +536,17 @@ func (d *Decoder) build() error {
}
type
Class
struct
{
Module
,
Name
string
Module
,
Name
string
}
func
(
d
*
Decoder
)
global
()
error
{
module
,
_
,
err
:=
d
.
r
.
ReadLine
()
if
err
!=
nil
{
return
nil
return
err
}
name
,
_
,
err
:=
d
.
r
.
ReadLine
()
if
err
!=
nil
{
return
nil
return
err
}
d
.
stack
=
append
(
d
.
stack
,
Class
{
Module
:
string
(
module
),
Name
:
string
(
name
)})
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