Skip to content

Instantly share code, notes, and snippets.

View terroo's full-sized avatar

Marcos Oliveira terroo

View GitHub Profile
@Tharun8951
Tharun8951 / lexer.cpp
Created March 30, 2024 20:12
A C++ lexer for a basic programming language. Tokenizes source code into various token types such as numbers, identifiers, operators, and keywords. Includes functions for splitting strings, checking for numbers and alphabetic characters, and handling skippable characters. The lexer reads input from a file, tokenizes it, and prints the resulting…
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <cctype>
#include <fstream>
#include <sstream>
#include <cstring>
#include <cstdlib>
@fnky
fnky / ANSI.md
Last active July 27, 2024 16:46
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27