Giter Site home page Giter Site logo

filipex's Introduction

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.

filipex's People

Contributors

edilson258 avatar hc12r avatar yazaldefilimone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.