Skip to content
/ filipeX Public
forked from edilson258/filipe

A high level programming language powered by Rust

Notifications You must be signed in to change notification settings

hc12r/filipeX

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Filipe version 0.1 alpha 7

An interpreted, static typed, single threaded programming language powered by Rust.

Filipe still primitive and limited although it has support for:

  • Arithmetic operations
  • variables declaration
  • if-else statments
  • for-loop statments
  • Native Data types int, float, boolean, string, null
  • Built-in function len, typeof, print
  • User defined functions
  • Arrays (experimental)

Filipe was design to be a high level programming language and beginner friendly, that why it has a clear syntax and an enhanced error reporting mechanisms.

Examples

  1. hello world
print("Hello, world!")
  1. more examples...
let name: string = "Jonh Harvard"
let age = 87
let height: float = 1.86
let favoriteLangs = ["Haskell", "Ocaml", "Rust"]

if height >= 1.90 {
    print(name, " is tall above avg.")
} else {
    print(name, " isn't so much tall")
}

for x in range(0, 10) {
    if x % 2 == 0 {
        print(x, " is even")
    }
}

print(name)
print(height)
print("Favorite prog. lang.: ", favoriteLangs)

Try it now

Just for Linux users, are you on windows? if so figure out your self sorry 😂

  1. clone this repository
git clone https://github.com/edilson258/filipe.git
  1. build it
cd filipe
cargo build
  1. start REPL
cargo run
  1. run from file (*.fl)
cargo run run <path_to_file>

Note: replace <path_to_file> with path to filipe script

Testing

as a php developer with Quick and Dirty mindset i only wrote few tests 😂

cargo test

Contributions

Feel free to fork it and play with it.

About

A high level programming language powered by Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.9%
  • Shell 1.1%