This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You need to `npm install ref ffi` for the following code to run. | |
// What it does basically is get the foreground window in windows and fetch its | |
// title and the path of the .exe that launched it. | |
var ref = require('ref'); | |
var ffi = require('ffi'); | |
var stringPtr = ref.refType('string'); | |
var voidPtr = ref.refType('void'); | |
var intPtr = ref.refType('int'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn assertGrammarRule(comptime T: type) void { | |
} | |
pub fn ZeroOrMore(comptime T: type) type { | |
assertGrammarRule(T); | |
} | |
pub fn Peek(comptime T: type) type { |