Skip to content

harshkavdikar1/Rancho-Programming-Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎈 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

About

Designing a whole new Programming Language | Lexer | Compiler | Semantics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •