View CTokens.pm6
use v6;
unit module CTokens;
grammar CTokens::Token is export {
token TOP {
[
<preproc> |
<comment> |
<line-comment> |
View groc-usage.md

Typical Usage of groc

The example presented here shows how one would use groc to create an internationalized die-roll application:

$ roll
You rolled a one
$ roll
View CONCEPT
antonijn, 2017
___ _ _ _ _
|_ _|_ _| |_ _ _ ___ __| |_ _ __| |_(_)___ _ _
| || ' \ _| '_/ _ \/ _` | || / _| _| / _ \ ' \
|___|_||_\__|_| \___/\__,_|\_,_\__|\__|_\___/_||_|
Because all other text editors suck (although
View cheaky_session_0
$ ./cheaky
> (let i 0)
> i
0
> (let j 10)
> j
10
> (let k j)
> k
10
View list.h
#ifndef LINUX_LIST_H
#define LINUX_LIST_H
#include <stddef.h>
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.
* @type: the type of the container struct this is embedded in.
* @member: the name of the member within the struct.
View matmul.c
vec4 mat4_col(const mat4 *m, int c)
{
vec4 res;
res.x = m->frows[0][c];
res.y = m->frows[1][c];
res.z = m->frows[2][c];
res.w = m->frows[3][c];
return res;
}
View main.c
#include <stdio.h>
#include <item/ast.h>
#include <item/io.h>
int main(int argc, char **argv)
{
item_mod *mod = item_create_mod();
item_type *i32 = item_e2b(item_get_int(mod, 32));
item_fun *fun = item_create_fun(mod, i32, "main", L_GLOBAL);
View path.c
#include<stdio.h>
#define b ;break;case
#define w (c=getc(f))
int c,x=1,y,u,r=1;char m[30000],*s=m;int main(int i,char**j){FILE*f=fopen(j[1],"r");while(w-'$'){++x;y+=c=='\n'?x=1:0;}for(;;){switch w{case'#':return fclose(f);b'\\':i=u;u=-r;r=-i;b'/':i=u;u=r;r=i;b'}':s++b'{':s--b',':*s=getchar()b'.':putchar(*s)b'^':u=*s?(r=0)+1:u;b'<':r=*s?(u=0)-1:r;b'v':u=*s?(r=0)-1:u;b'>':r=*s?(u=0)+1:r;b'+':++*s;b'-':--*s;b'!':x+=r;y-=u;}x+=r;y-=u;rewind(f);for(i=0;i<y;i+=w=='\n');for(i=0;i<x;++i)w;}}
View 17.hs
import Data.Char
writeOut :: Int -> String
writeOut 1 = "one"
writeOut 2 = "two"
writeOut 3 = "three"
writeOut 4 = "four"
writeOut 5 = "five"
writeOut 6 = "six"
View test.c
int main(void)
{
int i = 1 + 2;
int j = i + 1;
if (j)
return i;
return j;
}