🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/TekWizely/go-parsing

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/TekWizely/go-parsing

v0.0.0-20221001173913-aa6d6749ea2d
Source
Go
Version published
Created
Source

go-parsing GoDoc MIT license

A Multi-Package Go Repo Focused on Text Parsing, with Lexers, Parsers, and Related Utils

Goal

This repo aspires to be a useful toolset for creating hand-written lexers and parsers in Golang.

Multi-Module Repo

The modules within this repo are intended to work together, but are allowed to evolve separately.

Exported Modules

The following packages are currently exported:

lexer (github | godoc)

Base components of a lexical analyzer, enabling the creation of hand-written lexers for tokenizing textual content.

The tokenized data is suitable for processing with a parser.

Some Features of this Lexer:

  • Rune-Centric
  • Infinite Lookahead
  • Mark / Reset Functionality

Example

See go-parsing/lexer/examples/wordcount for an example program that utilizes the lexer.

lexer / token ( github | godoc)

Token-related types and interfaces used between the lexer and the parser.

parser (github | godoc)

Base components of a token analyzer, enabling the creation of hand-written parsers for generating Abstract Syntax Trees.

Some Features of this Parser:

  • Infinite Lookahead
  • Mark / Reset Functionality

Example

See go-parsing/parser/examples/calc for an example program that utilizes the parser (and lexer).

License

The tekwizely/go-parsing repo and all contained packages are released under the MIT License. See LICENSE file.

FAQs

Package last updated on 01 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts