Skip to content

Commit

Permalink
More minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavePearce committed Dec 9, 2024
1 parent ad46ae6 commit e38f456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/corset/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,10 @@ func (p *DefProperty) Dependencies() util.Iterator[Symbol] {
// Lisp converts this node into its lisp representation. This is primarily used
// for debugging purposes.
func (p *DefProperty) Lisp() sexp.SExp {
panic("got here")
return sexp.NewList([]sexp.SExp{
sexp.NewSymbol("defproperty"),
sexp.NewSymbol(p.Handle),
p.Assertion.Lisp()})
}

// ============================================================================
Expand Down
1 change: 0 additions & 1 deletion pkg/corset/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ func (p *Parser) parseDeclaration(module string, s *sexp.List) (Declaration, []S
}
// Register node if appropriate
if decl != nil {
fmt.Println(decl.Lisp().String(false))
p.mapSourceNode(s, decl)
}
// done
Expand Down

0 comments on commit e38f456

Please sign in to comment.