How to Build
To build langscan, run the following commands. You need to prepare requirements beforehand.
% tar zxf langscan-XXX.tar.gz # XXX is the version number % cd langscan-XXX % ./configure % make
You don't have to install the LangScan files to your system directory (ex. /usr/local/*). Instead, you can try LangScan in the build directory.
Example
% cat -n hello.c 1 #include <stdio.h> 2 3 int main(int argc, char **argv) 4 { 5 printf("Hello World.\n"); 6 return 0; 7 } % ruby -rlangscan/c -e 'LangScan::C.scan(ARGF.readlines.join) {|f| p f}' hello.c ...