Programming Languages63k+ stars

Python

The Python programming language

Commit Details

Message
"Initial revision"
Author
Guido van Rossum
Date
1990-08-09
Hash
7f777ed95a19224294949e1b4ce56bbffcb1fe9f

Fun Fact

Python is named after Monty Python, not the snake. Guido was a big fan of Monty Python's Flying Circus.

</>First Code

C
/* Parser-tokenizer link implementation */

#include "pgenheaders.h"
#include "tokenizer.h"
#include "node.h"
#include "grammar.h"
#include "parser.h"
#include "parsetok.h"
#include "errcode.h"

/* Parse input coming from a string. Return error code, print errors. */

int
parsestring(s, g, start, n_ret)
	char *s;
	grammar *g;
	int start;
	node **n_ret;
{
	struct tok_state *tok = tok_setups(s);
	int ret = parsetok(tok, g, start, n_ret);
	tok_free(tok);
	return ret;
}