The internal parser¶
The parser is written using Ply. It started as two separate parsers: one for the types language, and other for the expression language; however now it has been merged into a single parser to allow for more real-world like programs
There are no public API for the parsers. You get access to them by calling:
xotl.fl.parse()
for full programs;xotl.fl.parsers.expressions.parse()
for single expressions; andxotl.fl.parsers.types.parse()
for single type expressions.