The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Parse An i64 In Rust

TODO: Pull subtitle into page object
Code
//! ```cargo
//! [dependencies]
//! nom = "7.1.3"
//! ```


use nom::IResult;
use nom::character::complete::i64;

fn main() {
  let alfa = parse("-23").unwrap().1;
  dbg!(alfa);
}

fn parse(source: &str) -> IResult<&str, i64> {
  let (source, result) = i64(source)?;
  Ok((source, result))
}
Results
[neopolitan_code_run:13] alfa = -23

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Parse An i64 In Rust

<<link|asdf|https://>>


-- code
-- rust


//! ```cargo
//! [dependencies]
//! nom = "7.1.3"
//! ```


use nom::IResult;
use nom::character::complete::i64;

fn main() {
  let alfa = parse("-23").unwrap().1;
  dbg!(alfa);
}

fn parse(source: &str) -> IResult<&str, i64> {
  let (source, result) = i64(source)?;
  Ok((source, result))
}

-- results/

[neopolitan_code_run:13] alfa = -23

-- /results


-- code
-- python

print("asdf")

-- results/

asdf

-- /results


-- categories
-- Rust 




-- metadata
-- date: 2023-12-09 02:18:12
-- id: 2zionofh
-- site: aws
-- type: post
-- status: published