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
/* | |
INPUT SAMPLE: | |
VAR TESTE = 25 | |
PRINT "ALEXANDRE" | |
PRINT TESTE | |
GETCHAR | |
*/ |
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
/* | |
INPUT SAMPLE: | |
VAR NUMBER = 25 | |
VAR STRING = "ALEX" | |
VAR ERRO = "THAT's NOT CAUSE AN ERROR :)" | |
PRINT ERRO | |
PRINT "ALEXANDRE" | |
PRINT NUMBER |
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
/* | |
Sample: | |
file: main.in | |
// Start with defines | |
@define basic = std'basic | |
@define type = sys'types |
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
#include <cstdio> | |
#include <vector> | |
#include <windows.h> | |
using namespace std; | |
class Buffer: public vector<unsigned char> | |
{ | |
public: | |
void push_dword(DWORD dw) |
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
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
int numero = 0; | |
int retorno = 0; | |
printf("Entre com um numero: "); | |
scanf("%d", &numero); | |
#if defined(__GCC__) |
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
using namespace System; | |
/* <stmt> := var <ident> = <expr> | |
| <ident> = <expr> | |
| for <ident> = <expr> to <expr> do <stmt> end | |
| read_int <ident> | |
| print <expr> | |
| <stmt> ; <stmt> | |
*/ | |
public ref class Stmt abstract |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) | |
{ | |
int m = 0; | |
double **a = 0; | |
int i = 0, j = 0, k = 0; | |
double factor = 0; | |
double temp = 0; |
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
/* | |
1.61803398874989484820458683436563811772030917980576286213544862270526046281890 | |
2449707207204189391137484754088075386891752126633862223536931793180060766726354 | |
4333890865959395829056383226613199282902678806752087668925017116962070322210432 | |
1626954862629631361443814975870122034080588795445474924618569536486444924104432 | |
0771344947049565846788509874339442212544877066478091588460749988712400765217057 | |
5179788341662562494075890697040002812104276217711177780531531714101170466659914 | |
6697987317613560067087480710131795236894275219484353056783002287856997829778347 | |
8458782289110976250030269615617002504643382437764861028383126833037242926752631 |
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
.extern _putchar | |
.extern _getchar | |
.globl _main | |
.data | |
bfs: | |
.zero 262144 | |
.text | |
_main: |
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
open System | |
open System.IO | |
open System.Collections.Generic | |
let args = Environment.GetCommandLineArgs() | |
if args.Length <> 2 then Environment.Exit(1) | |
let bf = File.ReadAllText(args.[1]) | |
let loop = Array.zeroCreate<int>(bf.Length) | |
let stack = Stack<int>() |
OlderNewer