Relative Content

Tag Archive for goparsingabstract-syntax-treelexer

Parsing a function call statement using Participle golang

I want to create a simple parser for parsing function calls i.e. function(arg1, arg2, kw1=v1, kw2=v2)
I started fairly simple by creating a parser grammar for the Key and Value as a Property struct and wrapping that around a function struct, as followed.