MyFirstParserTarasenko 0.1.1

My fisrt simple parser
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 1 items with examples
  • Size
  • Source code size: 225.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 242.64 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MishaTarasenko

my_first_parser

My Parser

Welcome to My Parser, an educational crate designed to help you parse lists of numbers in string format. If you're looking to learn how parsers work or need a simple tool to parse numbers, this crate is for you!

Description

This parser is meant for educational purposes, allowing you to parse a list of numbers given in string format like "[1, 1, 2, 3, 5, 8]" and convert it into a Vec. It's perfect for those who want to understand how parsing works in Rust.

Examples

Parsing a Valid List

You can use my_parser_striletska to parse a list of numbers:

use MyFirstParserTarasenko::list_parser;

pub fn main() {
    assert_eq!(list_parser::list("[1,1,2,3,5,8]"), Ok(vec![1, 1, 2, 3, 5, 8]));
    println!("{:?}", list_parser::list("[1,1,2,3,5,8]"));
}

alt text