Exporting functions, classes .. like ctags
Community Forums/Monkey2 Talk/Exporting functions, classes .. like ctags
| ||
| I want to get information about a modules (at compile time, not runtime): Methods, Functions, Classes, etc., preferably in a standard format like json. Can the parser somehow help me there? I am interested for both, monkey1 and monkey2. i imagine output something like this:
mojo.graphics: {
classes: {
Image: {
constants: {
MidHandle: {
value: MidHandle,
type: Int
}
},
methods: {
SetHandle: {
returnType: Int,
arguments: {
x: {
value: x,
type: Float
},
y: {
value: y,
type: Float
}
}
}
}
}
},
functions: {
Cls: {
returnType: Int,
arguments: {
r: {
value: r,
type: Float,
default: 0
},
g: {
value: g,
type: Float,
default: 0
},
b: {
value: b,
type: Float,
default: 0
},
}
}
}
}
--- I have already written a custom parser and it works fine for the most part. Just asking if this is possible so I can get really accurate data. |