Git Product home page Git Product logo

honeycomb's Introduction

Hi, I'm Katrina!

๐Ÿณ๏ธโ€โšง๏ธ I'm a 24y/o trans woman, she/her, living in Idaho, USA

๐Ÿ’ป I have 7 years of development experience with:

๐ŸŽจ My specialties include:

  • Front- and back-end web development
  • Parsing and custom data/file formats
  • State machine logic
  • Creating development utilities like...
    • Lightweight zero-dependency libraries
    • Testing frameworks
    • API wrapper libraries
    • Hand-tailored web scrapers

โ˜Ž Want to hire me? I'm available!

โ˜• Like my work?

honeycomb's People

Contributors

kgscialdone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

honeycomb's Issues

Make honeycomb able to compile for JS

Is your feature request related to a problem? Please describe.
I'd like to compile my library which uses honeycomb to JavaScript, but that's currently not possible because of the dependency on std/re.

Describe the solution you'd like
Make honeycomb use std/jsre instead when compiling to JavaScript.

Describe alternatives you've considered
Make the regex functionality optional (since I'm not using it in my library anyway).

Additional context
My library which uses honeycomb

atLeast and atMost together makes the parser hang

I expected to be able to parse a (non-delimited) group of digits, grouped into some clusters. as follows:

digit.atMost(3).atLeast(4).parse("255314")

As a result, I expected a grouping of the digit clusters like "2", "5","53","14"; but the parser hangs (or at least, runs for 5 minutes without any result).

Environment:

  • OS: Windows amd64
  • Nim version: 1.7.1 (devel)

Additional context
I am a new user and might be missing something. If so, a pointer would be appreciated, as well as any other way to achieve what I'm trying to do.

[help]: command line argument parser

Hey!
I'm confused on writing a "command line argument" parser with honeycomb.

here's my code:

import honeycomb, print

const text = "make global -orient RXY -name vff"

let parser = (
  (many(letter) << whitespace) &
  many((many(c('-') | alphanumeric) << whitespace) & (many(letter) << optional(whitespace))) <<
  eof
)

print parser.parse text

I was trying to parse a command line input like make global -orient RXY -name vff and expected to get something like this:

["make", "global" , "-orient", "RXY", "-name", "vff"] # or
["make", "global" , @["-orient", "RXY"], @["-name", "vff"]]

but I get:

ParseResult[seq[seq[char]]](
  kind: "success",
  value: @[
    @['m', 'a', 'k', 'e'],
    @['g', 'l', 'o', 'b', 'a', 'l'],
    @['-', 'o', 'r', 'i', 'e', 'n', 't', 'R', 'X', 'Y'],
    @['-', 'n', 'a', 'm', 'e', 'v', 'f', 'f']
  ],
  tail: "",
  fromInput: "make global -orient RXY -name vff"
)

I tried to read the tests, but it lacks more advanced examples like this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.