OSLib parser generating Python interfaces

Justin F gerph at gerph.org
Sat Apr 24 22:58:50 BST 2021


Hiya,

I've been updating my OSLib parser to generate a Python OSLib module. It's 
quite ugly at the moment, but if anyone wants to see the results it's on 
the cpython-api-generation branch, and automatically builds as I push 
changes, eg here:

    https://github.com/gerph/riscos-oslib-parser/actions/runs/781388965

The parser's still rather ropey on some things (comments on constants are 
the immediate one that springs to mind), and the interface generator is 
wholely wrong for some return values, but it's progressing...

... and it helps me to find odd little bugs in OSLib, which I'll report 
shortly.

At the moment, though I'm auto-generating the python files by downloading 
the trunk of the svn repository thus:

    svn checkout https://svn.code.sf.net/p/ro-oslib/code/trunk ro-oslib-code

Is that the correct way to obtain the latest version of the source, or 
should I be looking elsewhere now?

-- 
Charles Justin Ferguson
[ All information, speculation, opinion or data within, or attached to,
  this email is private and confidential. Such content may not be
  disclosed to third parties, or a public forum, without explicit
  permission being granted. ]



More information about the oslib-user mailing list