Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
foo
 
 
 
 
 
 
 
 

setlx2py

This is a source-to-source compiler from setlX to Python 3. It was implemented during a one-year project for university.

The homepage for setlX can be found on http://randoom.org/Software/SetlX.

Dependencies

  • Python >= 2.7.3
  • PLY (Python Lex-Yacc)
  • blist
  • ast-gen (only for development)

Install them with

pip install -r REQUIREMENTS.txt

Play with it

Parser

Load the parser and start an interactive shell with

make parser

You can now use the parser variable to parse text:

>>> parser.parse("a;")
('FileAST', ('Identifier', 'a'))

AST

Rebuild the AST classes (needs ast-gen installed):

make ast

Run tests

The unit test suite can be run with

make test

Build Status

About

A SetlX to Python compiler.

Resources

License

Releases

No releases published

Packages

No packages published