Skip to content

Commit

Permalink
Add eval to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
longouyang committed Jun 8, 2016
1 parent b350d65 commit f387ab1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions make-docs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/* global require */

var builtins = require('./church_builtins.js');
var annotations = require('./church_builtins.js').__annotations__;
var annotations = builtins.__annotations__;

annotations.eval = {
name: 'eval',
desc: 'Evaluate a list representing a Church s-expression, e.g., <code>(eval (list + 1 2))</code> returns 3',
params: [{name: 'lst'}]
}

var _ = require('underscore');

_.templateSettings = {
Expand Down Expand Up @@ -66,9 +73,9 @@ function renderFunction(functionName, props) {
aliases: aliases,
argList: _(args).pluck('name').join(' '),
description: description,
table: argsTable});
table: argsTable});

return {name: functionName,
return {name: functionName,
string: tableString};
}

Expand Down

0 comments on commit f387ab1

Please sign in to comment.