sureshmangs / Build-Your-Own-X

Build Your Own X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Your Own X

Write Your Own wc Tool

The ccwc counts various statistics of a text file, such as the number of lines, words, characters, and bytes. It takes command-line arguments to specify the operation and the file to be analyzed.

It supports four different options:

  1. -l: Count the number of lines in the input file.
  2. -w: Count the number of words in the input file.
  3. -c: Count the number of bytes in the input file.
  4. -m: Count the number of characters in the input file (same as -c if the current locale does not support multibyte characters).

It also handles input from standard input (stdin) if no fileName is specified.

Write Your Own JSON Parser

The JSON Parser does the parsing and validation of data in a format resembling JSON. It starts by breaking down the input data into individual tokens through lexical analysis. Then, it proceeds to parse and validate the data structure, ensuring that it conforms to the expected JSON-like format. It ultimately determines whether the input data is "VALID JSON" or "INVALID JSON" based on the correctness of its structure.

Write Your Own Compression Tool

The Huffman compression and decompression utility designed to efficiently compress and decompress text data. It performs the compression and decompression of files using the Huffman coding algorithm, a popular method for data compression.

About

Build Your Own X

License:MIT License


Languages

Language:C++ 93.7%Language:Shell 5.9%Language:C 0.4%