Skip to content

aabs/fifthlang-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

156 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The Fifth Programming Languge

Twitter Follow .NET Travis (.com) GitHub GitHub forks GitHub Sponsors GitHub language count GitHub repo file count

Fifth is (growing to be) a general purpose programming language running on the .NET tech stack that makes it easy to work with RDF knowledge Graphs.

Table of Contents

Examples

Here's an example of Fifth in action:

class Person {
    Name: string;
    Height: float;
    Age: float;
    Weight: float;
}

calculate_bmi(p: Person {
    age: Age | age > 60,
    height: Height ,
    weight: Weight
    }) : float {
    return weight / (height * height);
}

 main():void {
    eric: Person = new Person{
        Name = 'Eric Morecombe',
        Height = 1.93,
        Age = 65,
        Weight = 100
    };
    print(calculate_bmi(eric));
}

See more examples, along with other docs, over on the wiki.

Contributing

Feel free to dive in! Open an issue or submit PRs.

Fifthlang follows the Contributor Covenant Code of Conduct.

Contributors

This project exists thanks to all the people who contribute.

License

GPL3.0 © Andrew Matthews.

About

Fifth is a multi-paradigm programming language featuring .NET compatibility, efficient functional programming with seamlessly embedded knowledge graphs

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Contributors