FiMSharp is no longer actively maintained. Please check out the successor: fim.
Feel free to check out the new project for updates and improvements!
using FiMSharp;
FiMReport report = new FiMReport(@"Dear Princess Celestia: Hello World!
Today I learned how to say hello world.
I said ""Hello World!"".
That's all about how to say hello world.
Your faithful student, Twilight Sparkle."); // You can also use FiMReport.FromFile(string path); to use a path instead.
report.Output = (l) => Console.Write(l);
if( report.MainParagraph != null ) {
report.MainParagraph.Execute(); // Outputs "Hello World!" into the console.
}
$ ./fim Reports/hello.fim
Hello World!
See the reports folder for sample reports you can run on FiMSharp.
-
FiMSharp - .NET Standard 2.0 at minimum.
-
FiMSharp.Changeling - .NET Standard 2.0 at minimum.
-
FiMSharp.CLI - .NET Core 3.1 at minimum.
-
FiMSharp is just a personal hobby project, seeing as FiM++ has never been updated for quite some time now.
-
The syntax used here follows a modified
Sparkle 1.0
syntax, unlike what fimpp uses. Please refer to the sample reports to see the differences.