microsoft / schemy Goto Github PK
View Code? Open in Web Editor NEWA lightweight embeddable Scheme-like interpreter for configuration
License: MIT License
A lightweight embeddable Scheme-like interpreter for configuration
License: MIT License
None is a heavily used word in F# (https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/options)
If you do "open Schemy" in any F# program, it will almost certainly break because CommonTypes.cs defines it as a public class. Please consider changing the name.
"for configuration" sounds like it be an alternative to YAML or TOML for config files for applications.
If yes, then an example in the README would be good.
Since scripting is always a nice thing in Videogaming, I chose your library for my Unity Project AsciiQuest (WIP).
The only thing needed to make the Unity version I have happy is to reimplement Enumerable Zip and Tuple Create
(or change public static bool EqualImpl(object x, object y) {...} to not use tuples) as well as making InitializeFiles protected virtual to override it (assembly loading is not the way to go using unity).
// requires protected virtual IEnumerable<TextReader> GetInitializeFiles() in Interpreter.cs
class Interpreter2 : Interpreter
{
public Interpreter2 () : base (null, null)
{
}
protected override IEnumerable<TextReader> GetInitializeFiles ()
{
yield break;
}
}
Interesting that #7 also mentions Scheme for Unity :D
Thanks a lot for this nice interpreter :)
Currently doing
Interpreter.CreateSymbolTableDelegate extension = itpr =>
{
return new Dictionary<Symbol, object>
{
[Symbol.FromString("exit")] = NativeProcedure.Create<int>(Exit,"exit"),
};
};
where Exit is defined as
private static int Exit()
{
System.Environment.Exit(1);
return 1;
}
Would be nicer to be able to specify System.Environment.Exit
in the .Create
I tested schemy
on Unity3D gameengine.
but when i try, using dll direcly, I got error on GetInitializeFiles
https://github.com/Microsoft/schemy/blob/master/src/schemy/Schemy.cs#L54
Because, On Unity, fail to get resource from dll,
var names = Assembly.GetExecutingAssembly().GetManifestResourceNames();
names.Count == 0
how about make some mechanism alternative GetInitializeFiles
?
Do you have a plan to support interop .net?
https://clojure.org/reference/java_interop
like
(Console/WriteLine "A")
(.ToString 1)
Currently, the repl is just under examples.
It would be useful to expose it as dotnet global tool, so it would be easy to "play with" the scripts while learning and testing stuff.
If this does not seem to be in scope, I can publish a global tool myself but I'm not sure how to make it obvious from the name that it's not "official" repl in any way.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.