Sunday, December 23, 2018

Take snippets, for example

Little bits of code that do interesting things, turn one string into another, engage in graph searching, make i data structures; all of it neat stuff.  Give your snippet the universal interface, design the linux style command format, likely less than five lines of code. Then your snippet is a loadable, and we can use our linux power shell to load it and it is connected to our favorite syntax engine. We can play with your snippet right away, plot it, sort it, whatever your snippet generates. We might even send you spare change for your snippet.

Hello World snippet:

int entry(int *argc,void* args[]) {

if(strcmp("MySnipper", args[*argc]) return(NOTFOUND);
    PutString(id,"HelloWorld" x,y);
    *argc +=1;
    return(SUCCESS);
}
Compile it shared, the Console loop can find it and MySnippet becomes an official command.  MySnippet actually becomes a variable, accessible by Default, Likely not a good idea, but it is the default result, for a boot syntax.

No comments: