Go Ast

Open-source Go projects categorized as Ast

Top 17 Go Ast Projects

  1. participle

    A parser library for Go

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. PHP-Parser

    PHP parser written in Go (by z7zmey)

    Project mention: Generic Freelist Allocator for Go | news.ycombinator.com | 2024-09-14

    I've used this idea to speed up AST parsing: https://github.com/z7zmey/php-parser/issues/21

    By just reducing cost of doing allocations (but still allocating the same number of structs) on some of the hot paths it sped up making of the AST tree by 1.5x

    If you can use this approach for the entire parser I imagine the gains would be much more significant

  4. graphql-go-tools

    GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.

    Project mention: An Introduction to Cosmo Router — Blazingly Fast Open-Source Federation V1/V2 Gateway | dev.to | 2025-03-10

    The Cosmo Router is powered by graphql-go-tools , a highly mature and optimized GraphQL engine (MIT License) that is the fastest and most reliable implementation for Federation V1 . The Cosmo Router builds on it with its own optimizations.

  5. math-engine

    Mathematical expression parsing and calculation engine library. 数学表达式解析计算引擎库

  6. exhaustive

    Check exhaustiveness of switch statements of enum-like constants in Go source code.

    Project mention: Enums in Go | news.ycombinator.com | 2024-07-12

    There are two linters that add those checks: https://github.com/nishanths/exhaustive for values and https://github.com/alecthomas/go-check-sumtype for types. Both are integrated into golangci-lint. I use both a lot and have only a positive experience.

    Having support from the language would be nice, though.

  7. valast

    Convert Go values to their AST

  8. go-instrument

    ⚡️ Automatically add Trace Spans to Go methods and functions

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. phpgrep

    Syntax-aware grep for PHP code.

  11. efp

    Go Language Microsoft Excel™ Formula Parser

  12. astextract

    Convert a go file to its ast representation

  13. asty

    Converts golang AST to JSON and JSON to AST

  14. CricLang

    CricLang is a fun dynamically typed language written in Go for cricket enthusiasts.

  15. gotype

    Golang source code parsing, usage like reflect package

  16. easytemplate

    easytemplate is Go's text/template with 🦸 JS super powers 🦸

  17. go-auto-commenter

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

  18. go-expression-calculator

    Custom implementation of calculator handling operator precedence and parentheses.

  19. go-pg-sqlc-crud

    generate crud stubs for postgres in go

    Project mention: Show HN: Sqlc Postgres Golang CRUD Generator | news.ycombinator.com | 2024-12-10
  20. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Go Ast discussion

Log in or Post with

Go Ast related posts

  • Generic Freelist Allocator for Go

    1 project | news.ycombinator.com | 14 Sep 2024
  • Introducing CricLang 🏏: A programming language for cricket enthusiasts

    1 project | dev.to | 17 Mar 2024
  • Parser generator

    1 project | /r/golang | 14 Sep 2023
  • Advice or tip

    1 project | /r/golang | 30 Jun 2023
  • Best parser generator in go?

    2 projects | /r/golang | 18 Jan 2023
  • Blog on enums in Go: benchmarks; issues; assembly

    2 projects | /r/golang | 16 Nov 2022
  • Acorn: A lightweight PaaS for Kubernertes, from Rancher founders

    11 projects | news.ycombinator.com | 27 Aug 2022
  • A note from our sponsor - InfluxDB
    influxdata.com | 24 Apr 2025
    Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems. Learn more →

Index

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

# Project Stars
1 participle 3,686
2 PHP-Parser 943
3 graphql-go-tools 735
4 math-engine 321
5 exhaustive 312
6 valast 310
7 go-instrument 258
8 phpgrep 237
9 efp 121
10 astextract 90
11 asty 83
12 CricLang 74
13 gotype 62
14 easytemplate 49
15 go-auto-commenter 12
16 go-expression-calculator 4
17 go-pg-sqlc-crud 4

Sponsored
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com

Did you know that Go is
the 4th most popular programming language
based on number of references?