Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 1.79 KB

README.md

File metadata and controls

62 lines (51 loc) · 1.79 KB

🎈 Rancho Programming Language

⚙ How to run your program


python3 main.py <inputfile>
Example 
python3 main.py sourcecode.rch (MAC)
and 
python main.py sourcecode.rch (Windows)

🕶 Project Video Link


⚙ How to Install it on (MAC)


  • Install SWI-Prolog Version 7.6.4 (Click to Install 🚀)
    • Note this does not work for latest SWI-Prolog for version 8 or above because this
  • In your /etc/profile add these lines
export PATH=$PATH:/Applications/SWI-Prolog.app/Contents/swipl/bin/x86_64-darwin15.6.0
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0
  • Make sure pip3 and python3 are installed on your mac and then run
pip3 install -r requirements.txt
  • Run main.py present in src
python3 main.py inputfile

You can get input file from sample folder

⚙ How to Install it on (Windows)


  • Install latest SWI-Prolog Version (Click to Install 🚀)

  • Now add swipl in environment varibales. Go to path in enviroment variable and add following.

path_to_swipl\swipl\bin;
  • Make sure pip and python are installed on your windows and then run
pip install -r requirements.txt
  • Run main.py present in src
python main.py inputfile

You can get input file from sample folder

⚙ Tools Used


  • SWI-Prolog Desktop Application (Link 🚀)
  • Python Libraries Used - pyswip, tokenize, functools, io