Go Ast

Open-source Go projects categorized as Ast | Edit details
Related topics: #Go #Golang #Parser #Lexer #Linter

Top 12 Go Ast Projects

  • participle

    A parser library for Go

    Project mention: Is GO a good option to write a compiler/interpreter? | reddit.com/r/golang | 2021-11-27

    I made a domain specific language using https://github.com/alecthomas/participle what I found interesting is the grammar defined in structure annotations. After the parser runs, you get a fully instantiated structure based upon the input. I then invoke structure methods to do the work described in the DSL.

  • expr

    Expression language for Go

    Project mention: An embeddable Prolog scripting language for Go | news.ycombinator.com | 2022-01-26

    Have you had a look at Expr? https://github.com/antonmedv/expr

    We are using it for ETL processing and are very happy with it. The performance is excellent and it is easily extendable.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • PHP-Parser

    PHP parser written in Go (by z7zmey)

    Project mention: NoColor — validate the architecture of your PHP project | reddit.com/r/PHP | 2021-06-28

    Unfortunately, there are problems with using Go for parsing, it is a parsing library. We use https://github.com/z7zmey/php-parser which now fully supports PHP 7.4, but the developer is currently not active and it is not known when PHP 8 will be supported (most likely we will do it ourselves soon).

  • graphql-go-tools

    Tools to write high performance GraphQL applications using Go/Golang.

    Project mention: Ask HN: Have you found something you love to do? If yes how? | news.ycombinator.com | 2021-12-25

    Five or so years ago I started to "implement" GraphQL, the Query language from scratch. Lexing, parsing, designing an AST. I had to rewrite everything multiple times, added validation and an execution engine. At some point I realized what I've actually built, the foundation to create an npm-like system for APIs, using GraphQL as the universal integration language for any kind of API. Since I understood how powerful this concept is I'm unable to stop working on it. I'm now turning this into a product/company, it's called WunderGraph: https://wundergraph.com/ Btw. the engine and everything is open source, it's written in Go: https://github.com/jensneuse/graphql-go-tools

  • valast

    Convert Go values to their AST

    Project mention: Convert Go values to their AST | reddit.com/r/golang | 2021-11-01
  • phpgrep

    Syntax-aware grep for PHP code.

    Project mention: NoVerify — static analyzer for PHP | reddit.com/r/PHP | 2021-08-31

    phpgrep — a structured search tool that allows you to search for code through special templates

  • exhaustive

    Check exhaustiveness of enum switch statements in Go source code.

    Project mention: Go Replaces Interface{} with 'Any' | news.ycombinator.com | 2021-12-14


    here, have fun. You’re gonna write some tests, make new types to satisfy interfaces for testing, and then wind up with branches for your test paths in your live code, but go for it, I guess. You know everything! I am but a simple blubbite, too dim, too dim to get it.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • astextract

    Convert a go file to its ast representation

  • gotype

    Golang source code parsing, usage like reflect package

  • macschema

    Toolchain for generating JSON definitions of Apple APIs

    Project mention: Towards the Personal Potential of Software | dev.to | 2021-07-05

    With the macschema toolchain, you can generate API schemas about any Apple framework, class, function, etc based on their documentation and header declarations. This is useful for us in generating framework bindings in macdriver, but it would be useful for any project doing similar work, such as bindings for other languages. This sort of approach will play a big part in how Tractor will integrate with "whatever we want" down the line.

  • go-auto-commenter

    A go tool to add comments automatically on all the exported functions in a go project

    Project mention: An Auto commenter library for golang. | reddit.com/r/golang | 2021-06-08
  • go-expression-calculator

    Custom implementation of calculator handling operator precedence and parentheses.

    Project mention: Shunting Yard parser - Expression calculator | dev.to | 2021-06-03

    🔗 ⚠️ Code below is simplified. See whole code on GitHub in arxeiss/go-expression-calculator repository.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-01-26.

Go Ast related posts


What are some of the best open-source Ast projects in Go? This list will help you:

Project Stars
1 participle 2,337
2 expr 2,303
3 PHP-Parser 849
4 graphql-go-tools 265
5 valast 248
6 phpgrep 202
7 exhaustive 136
8 astextract 49
9 gotype 36
10 macschema 10
11 go-auto-commenter 8
12 go-expression-calculator 1
Find remote jobs at our new job board 99remotejobs.com. There are 30 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.