example

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

Generating a parser starts with creating a bnf file.
We have created an example.bnf file to illustrate this.
Running gen.sh will generate the parser, scanner and token code
needed to parse the language.

The ast (abstract syntax tree) package needs to created by the user.
This package should contain the corresponding function calls
required by the syntax directed translation rules.
See the example/ast package we have created.

Parsing a string with the generated code and evaluating the ast is
shown in example/example_test.go with some corresponding tests.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL