Re: Capri 1.16 beta release!
Posted: Thu Nov 06, 2014 6:08 am
Feel free to give it a try, happy to hear critique!KemyLand wrote:Didn't noticed this topic I was excepting it long ago
The Place to Start for Operating System Developers
https://f.osdev.org/
Feel free to give it a try, happy to hear critique!KemyLand wrote:Didn't noticed this topic I was excepting it long ago
Code: Select all
task all depends build, buildLib;
task build depends compile, link;
task compile { ... }
task link { ... }
task buildLib { ... }
Code: Select all
task build depends compile, link;
Code: Select all
task build { compile(); link(); }
Code: Select all
projDir = File.getCurrentDirectory();
sysroot = File.getAbsolutePath("{projDir}/build/sysroot");
Code: Select all
import "../../build.capri";
...
somethingRandom = "{sysroot}/usr/include";
Code: Select all
File.getAbsolutePath("{File.getCurrentDirectory()}/build/sysroot");
Code: Select all
task something depends somethingElse
{
}
I'll create a BNF for Capri, I've never written a textmate syntax file, but feel free to contribute if you made onerequimrar wrote:Thanks! (also, would it be possible to release a text mate syntax file for capri?)
You can put any expression in there, everything in there is interpreted and the return value (or for a simple variable the variable value) is inserted right at that location.requimrar wrote:PS: What can go inside the string-substitution curly braces {}? Just variable identifiers, or are arbitrary expressions (function calls) also allowed?
Code: Select all
task print {
Utils.print("Hello ");
return "world";
}
Utils.println("{print()}");