Basic unit type:
λ> replTy "()"
() :: ()
Basic functions:
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <[email protected]> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |
# Terminal output control (http://www.termsys.demon.co.uk/vtansi.htm) | |
TC='\e[' | |
CLR_LINE_START="${TC}1K" | |
CLR_LINE_END="${TC}K" | |
CLR_LINE="${TC}2K" | |
# Hope no terminal is greater than 1k columns | |
RESET_LINE="${CLR_LINE}${TC}1000D" |
import macros | |
macro `=>`(p, b: expr): expr {.immediate.} = | |
echo treeRepr(p) | |
#echo(treeRepr(b)) | |
var params: seq[PNimrodNode] = @[newIdentNode("auto")] | |
case p.kind | |
of nnkPar: | |
for c in children(p): |
Basic unit type:
λ> replTy "()"
() :: ()
Basic functions:
/* SeeSP: Print the value of the stack pointer. | |
* Build: gcc SeeSP.c -o SeeSP | |
* | |
* Towel - 2017 | |
*/ | |
#include <stdio.h> | |
#include <inttypes.h> | |
int main(void) | |
{ |