http://ido.nu/kuma/2009/10/22/spidermonkey-parsenode-to-json/ の jsparsenodetree.c に関数の引数のための修正をした際の差分が下記になります。
jsparsenodetree.c.2010-03-27.diff.gz
インストールに成功した場合、下記のようになります。
$ cat good.js
function test(arg1, arg2)
{
}
$ jsparsenodetree good.js
{
"node": "LIST",
"token": "LC",
"list": [
{
"node": "FUNC",
"token": "FUNCTION",
"name": "test",
"argv": 2,
"args": [ "arg1", "arg2" ],
"body": [
{
"node": "LIST",
"token": "LC",
"list": [
]
} ]
}
]
}
jsparsenodetree.c
jsparsenodetree.c part3
0 件のコメント:
コメントを投稿