Skip to content

toro-nicolas/pseudo-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⌨️️ Pseudo-Lang 🗣️

Table of contents 📑

Description 📝

Pseudo-Lang is a programming language. Its aim is to write fast programs easily, accessible to all types of audience. It is based on the principle of the "pseudo-code", writing code in an almost natural language. Here, our language is based on a kind of pseudo-code in French (if required, we can add other languages).
Like every programming language, this one includes a compiler: PLC (Pseudo-Lang Compiler). The compiler will convert the Pseudo-Lang project into a C project that can be accessed directly by the client.

This github repository contains the PLC source code and all the information linked to Pseudo-Lang.
For more information on the project, please visit the github project or the project website.

Usage ⚔️

Here's an example of a PSL (Pseudo-Lang) file : addition.psl

afficher("Hello, World!\n")

fonction: additionner(entier a, entier b) -> entier
    afficher(a, " + ", b, " = ")
    retourner a + b
    
a <- 5
b <- 3
afficher(additionner(a, b), "\n")

You can run plc like this :

./plc addition.psl -o addition -r

For more information, please see the help section.

USAGE
        plc [OPTIONS] [file1.pl file2.pl ...]
DESCRIPTION
        The official Pseudo-Lang Compiler
OPTIONS
        -c              Only convert Pseudo-Lang to C, no compilation
        -d [directory]  Specify the code output directory
        -o [name]       Specify the name of the executable (default is main.out)
        -r              Run the program after compilation*
        -w              Disable warning display

Compilation 🛠️

You can compile the PLC project with this command :

make

If you want clean the PLC project, you can run this command :

make clean

You can clean and compile the PLC project with make re .

Documentation 📚

The documentation to the Pseudo-Lang is accessible here.

To open the PLC documentation, run the command :

make doc

Credits 👤

This project, Pseudo-Lang and its compiler, was totally imagined and built by Nicolas TORO as part of a HUB project for his first year in EPITECH's Grande Ecole program.

About

A quick and easy programming language for beginners, with his compiler.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published