FreakC

所属分类:collect
开发工具:Batchfile
文件大小:0KB
下载次数:0
上传日期:2022-08-08 12:48:44
上 传 者sh-1993
说明:  FreakC编程语言-用Batch编写的一种类似Batch的实验语言,可编译为Batch,
(FreakC Programming Language - an experimental Batch-like language written in Batch which compiles to Batch,)

文件列表:
Examples/ (0, 2022-08-08)
Examples/99BottlesOfBeer.fclang (528, 2022-08-08)
Examples/Calculator.fclang (749, 2022-08-08)
Examples/Fibonacci.fclang (262, 2022-08-08)
Examples/FizzBuzz.fclang (349, 2022-08-08)
Examples/HelloWorld.fclang (35, 2022-08-08)
Examples/IsDivisable.fclang (368, 2022-08-08)
Examples/LoveTester.fclang (267, 2022-08-08)
Examples/OOP.fclang (226, 2022-08-08)
Examples/OddOrEven.fclang (176, 2022-08-08)
Examples/RPG.fclang (900, 2022-08-08)
Examples/RainbowText.fclang (342, 2022-08-08)
Examples/SortArray.fclang (408, 2022-08-08)
Examples/StoreData.fclang (25, 2022-08-08)
Examples/TheTruthMachine.fclang (167, 2022-08-08)
Examples/Tictactoe.fclang (6653, 2022-08-08)
IDE.md (1828, 2022-08-08)
LICENSE.md (35149, 2022-08-08)
Resources/ (0, 2022-08-08)
Resources/Branding/ (0, 2022-08-08)
Resources/Branding/logo.png (4756, 2022-08-08)
Source/ (0, 2022-08-08)
Source/FCShell.bat (461, 2022-08-08)
Source/FreakC.bat (22543, 2022-08-08)
Source/createFile.bat (19, 2022-08-08)
Source/libgen.bat (13831, 2022-08-08)
TUTORIAL.md (52073, 2022-08-08)
Utilities/ (0, 2022-08-08)
Utilities/Scripts/ (0, 2022-08-08)
Utilities/Scripts/FreakC.sublime-build (34, 2022-08-08)
Utilities/Scripts/FreakC/ (0, 2022-08-08)
... ...


An experimental programming language

language GitHub stars Windows
## Note I have taken a little break from FreakC and Batch coding as a whole, I might do a rewrite for FreakC in the future when I'm free. Other than that, I'm working on JeChain, check it out if you are interested!

## What is FreakC ? `print[] Hello, World.` FreakC is a nice, little, multi-paradigm programming language, which looks like Batch, compiles to Batch and is written in Batch as well. It is mainly built to be an experimental project with the idea of creating a programming language in such a limited language like Batch, but then it turns out that FreakC has added a little bit of features to Batch that might come in handy for some Batch developers. Batch's commands should work with FreakC most of the time, however, there are some quirks you should consider checking out which I have mentioned in the next part of this document. And yes, this is not a C dialect, it's more like `C` in `ArnoldC`. ### Language preview Hello World: print[] Hello, World! Function definition: function[] SayHello print[] Hello endfunc[] :: Calling "SayHello" function, printing out "Hello" SayHello[..] :: This will also work, because Batch's commands work in FreakC: call SayHello Class-based object-oriented programming: :: Create a class called "Dog" class[] Dog :: Init method method[] init var[] $this.age=%~2 var[] $this.weight=%~3 endmethod[] method[] BeingCute print[] *Being cute* endmethod[] endclass[] FreakC's commands end with `[]` or a special operator to indicate that it's FreakC code, so it doesn't cause confusion with Batch codes in your code. [More samples](https://github.com/FreakC-Foundation/FreakC/tree/master/Examples) [Join the small community on Discord!!!](https://discord.gg/eNwqK4APsD) ### Switching from Batch to FreakC While FreakC is compatible with Batch, but it's not 100% compatible, you just need to replace all `!` with `^!`, `^^!` with `^^^^^!` (the second one is only required in enabled delayed expansion). If you use codes that depends on blank lines, then just change them to the `!` character to create a blank line entirely, or just use Batch's `^`. ### FreakC's added features compared to Batch * While loops, repeat-until loops, and FreakC's own for loops with break/continue supports. * Switch cases. * Class-based OOP. * A bunch of utility functions for you to use. * Inline functions. * Macros. * Some minimal operators. * Floating-point numbers. * Some additional commands. There are still more! [Get started now!](https://github.com/FreakC-Foundation/FreakC/blob/master/TUTORIAL.md) ### Stuffs you would expect from a scripting language * Multi-paradigm (procedural, object-oriented, data-oriented...). * General purpose. * Dynamically typed. * Short, simple, packed with utility functions to help coding easier. * Easy to set up and use since it's written in Batch, you can just download the compiler and start coding. * Extremely light compiler which weighs less than 40kb! ### Should you use FreakC? * As a Batch developer: Sure, but be aware that this project is still in BETA, and hasn't reached 1.0. * As a open-source developer: You can 100% use my code for your project, but please follow the conditions from GPLv3 License, and at least credit me in the README. * As a beginner to programming: No, just no, Batch and FreakC are things created by dark magic. * AS a real deal programmer: No, Batch and FreakC are slow and weird, their community is small, and there are not much good frameworks out there. ### Todos * Concurrent model. * More utility functions. * Nicer inheritance and polymorphism for OOP. ## What comes with the devkit ? * A compiler. * A command line shell. * A command line interface. * Some utilities. * Some examples. ## Language resources * [Tutorials](https://github.com/FreakC-Foundation/FreakC/blob/master/TUTORIAL.md) * [Samples](https://github.com/FreakC-Foundation/FreakC/tree/master/Examples) * [IDEs](IDE.md) ## Frameworks and libraries ### Official FreakC's frameworks * discord.fclang - A discord api wrapper built on top of Discord.net, can be used for bot dev. ### Cool Batch frameworks/libraries * Number.cmd - A library for evaluating floating point number. * Discord.bat - A discord api wrapper built on top of Discord.net, can be used for bot dev. ### Batch game frameworks There are many existing game engines for Batch/FreakC: * Berry * Corpse * Shade * Seta ## Contribute We would love to have you as a contributor! Please consider checking out [contribution guidelines](https://github.com/FreakC-Foundation/FreakC/blob/master/.github/CONTRIBUTING.md) first! ## Support the project! If you like FreakC, it would be great if you leave a star here . I'd love if you follow me as well . To push the project's development faster, I'd love if you buy me a coffee by sending me some cryptos into my BEP-20 wallet: `0x1848Ba922d6eD66D4910176998fF4fa77AEb82D5` ### Sponsors * Top sponsor: @anapple96 ## Resources * Facebook * Discord * Offical Website ## Languages based on FreakC I've created this tiny language for Vietnamese using the FreakC's codebase: * VNC ## Contributors * Owner/Developer: @nguyenphuminh. * VSCode contributor: @anapple96. ## Repo's contributors ## Copyrights and License Copyright 2020-2021 Nguyen Phu Minh published under the GPLv3 License

近期下载者

相关文件


收藏者