C- in ANTLR

This is a sample of a small language with global variables, assignments, arithmetic expressions, input, output, if and while, which compiles into java assembler (can’t say that i excell in jasmin, but this one works in most cases). (source code)

2013-02-03 · tswr

Calc in ANTLR

This is a sequence of calculators which can be used to dive into ANTLR. calc Write down the grammar. (source code) ...

2013-02-03 · tswr

Students' Theses

Development of General Purpose Object Oriented Language Compiler (Egor Kolmogortsev) This course work is devoted to development of an OO language compiler on the basis of flex, bison and llvm tools. Thesis Presentation Sources Graph_Viz (Maxim Pomazuev) This is an introductory work into the field of vizualization of big graphs. Archive (Ru) ASMPY (Aleksandr Krasnorutskiy) ASMPY is an assembler of python compiled files compatible with unpyc disassembly output. The structure of python compiled files is considered. The purpose of the work is to create a low-level language for *. pyc files and to develop an assembler for this language. The paper contains specification on the assembly language for CPython, lexical and syntactic analyzers. Thesis (Ru) ...

2013-02-03 · tswr

Скрипты. Полезное

Документация script56.chm msdn jscript mozilla developer center Полезные утилиты cmd notepad javascript lint beautifier Автомат Автомат по данному курсу можно получить сдав в срок все задачи отчет по задачам поиска подстроки в строке контрольную коллоквиум

2013-02-03 · tswr

C++ & Boost. Материалы докладов

Smart ptr (Дмитрий Корнев) Thread (Сергей Азовсков) Unordered (Софья Новожилова) GIL (Алексей Титов) String Algo (Илья Петров) MPL (Виктор Самунь) Test (Антон Романович) MPI (Дмитрий Корнев) Что могут и не могут шаблоны С++ (Богдан Мельник) Interprocess (Софья Новожилова) Signals (Сергей Азовсков) Fun, Bind (Виктор Самунь) Рейтинги докладов

2013-02-03 · tswr

Сети 2. Ссылки

Структура Интернета traceroute.org whatismyip.com, myip.ru BGPlay Whois IANA / numbers PuTTY whois.pl ip2cc.pl SNTP ntime.pl pool.ntp.org Automachron

2013-02-02 · tswr

Select

my $paddr = inet_aton($addr); croak "Cannot resolve '$addr'" if (!defined $paddr); socket SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp') or croak 'Cannot create socket'; connect SOCK, sockaddr_in($port, $paddr) or croak "Cannot connect to server '$server'"; send SOCK, "$query\r\n", 0; vec($rin, fileno(SOCK), 1) = 1; do { ($nfound) = select($rout = $rin, '', '', $timeout); croak 'Select() error' if ($nfound == -1); croak 'Timeout' if ($nfound == 0); croak 'Recv() error' if (!defined(recv SOCK, $buf, 512, 0)); $answer .= $buf; } while $buf ne ''; shutdown SOCK, 2;

2013-02-02 · tswr

Raw Sockets

sub sendRaw($$$) { use constant IPPROTO_RAW => 255; my ($destination, $dport, $packet) = @_; eval { socket(SOCKET, PF_INET, SOCK_RAW, IPPROTO_RAW); my $paddr = sockaddr_in($dport, inet_aton($destination)); send(SOCKET, $packet, 0, $paddr); }; if ($@) { print "Error occured: $@"; } } sub assembleRawUdp($$$$$) { my ($destination, $dport, $source, $sport, $data) = @_; ...

2013-02-02 · tswr

Tk

#!/usr/bin/perl use Tk; sub Exit { exit(0); } sub showHelp { $tl = $root->Toplevel; $tl->title("Help"); $tl->Label(-text => '(c) tswr')->pack(); } ...

2013-02-02 · tswr

Hamming Code

Source <html> <head> <title>Snippet for "Hamming code"</title> <style> body { padding: 5px; background-color: lightgoldenrodyellow } </style> <script type="text/javascript"> function copy() { var input = document.getElementById('input'); var output = document.getElementById('output'); output.value = input.value; } </script> </head> <body> <h4>Snippet for "Hamming code"</h4> <input type='text' id='input'></input> <input type='button' onclick='copy()' value='copy'></input><br> <input type='text' id='output'></input> </body> </html> Demo

2013-02-02 · tswr