├── .activate ├── .github └── workflows │ └── go.yml ├── .gitignore ├── .gitmodules ├── CHANGELOG ├── LICENSE ├── README.md ├── dfa ├── dfa_helpers.go ├── dfa_helpers_test.go ├── gen.go └── gen_test.go ├── doc.go ├── examples ├── sensors-parser │ ├── .gitignore │ ├── README.md │ ├── ast.go │ ├── main.go │ ├── sensors.conf │ ├── sensors.y │ ├── sensors_golex.go │ └── y.go └── sensors │ └── main.go ├── frontend ├── ast.go ├── ast_equality.go ├── desugar.go ├── desugar_test.go ├── frontend_test.go ├── gen.go └── parser.go ├── go.mod ├── go.sum ├── grammar ├── inst ├── inst.go └── inst_test.go ├── lexc └── main.go ├── lexer.go ├── lexer_test.go ├── machines ├── dfa_machine.go ├── machine.go └── machine_test.go └── queue └── queue.go /.activate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/.activate -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | bin 4 | pkg 5 | vendor 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/.gitmodules -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/CHANGELOG -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/README.md -------------------------------------------------------------------------------- /dfa/dfa_helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/dfa/dfa_helpers.go -------------------------------------------------------------------------------- /dfa/dfa_helpers_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/dfa/dfa_helpers_test.go -------------------------------------------------------------------------------- /dfa/gen.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/dfa/gen.go -------------------------------------------------------------------------------- /dfa/gen_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/dfa/gen_test.go -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/doc.go -------------------------------------------------------------------------------- /examples/sensors-parser/.gitignore: -------------------------------------------------------------------------------- 1 | y.output 2 | -------------------------------------------------------------------------------- /examples/sensors-parser/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors-parser/README.md -------------------------------------------------------------------------------- /examples/sensors-parser/ast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors-parser/ast.go -------------------------------------------------------------------------------- /examples/sensors-parser/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors-parser/main.go -------------------------------------------------------------------------------- /examples/sensors-parser/sensors.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors-parser/sensors.conf -------------------------------------------------------------------------------- /examples/sensors-parser/sensors.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors-parser/sensors.y -------------------------------------------------------------------------------- /examples/sensors-parser/sensors_golex.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors-parser/sensors_golex.go -------------------------------------------------------------------------------- /examples/sensors-parser/y.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors-parser/y.go -------------------------------------------------------------------------------- /examples/sensors/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/examples/sensors/main.go -------------------------------------------------------------------------------- /frontend/ast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/frontend/ast.go -------------------------------------------------------------------------------- /frontend/ast_equality.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/frontend/ast_equality.go -------------------------------------------------------------------------------- /frontend/desugar.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/frontend/desugar.go -------------------------------------------------------------------------------- /frontend/desugar_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/frontend/desugar_test.go -------------------------------------------------------------------------------- /frontend/frontend_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/frontend/frontend_test.go -------------------------------------------------------------------------------- /frontend/gen.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/frontend/gen.go -------------------------------------------------------------------------------- /frontend/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/frontend/parser.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/go.sum -------------------------------------------------------------------------------- /grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/grammar -------------------------------------------------------------------------------- /inst/inst.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/inst/inst.go -------------------------------------------------------------------------------- /inst/inst_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/inst/inst_test.go -------------------------------------------------------------------------------- /lexc/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/lexc/main.go -------------------------------------------------------------------------------- /lexer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/lexer.go -------------------------------------------------------------------------------- /lexer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/lexer_test.go -------------------------------------------------------------------------------- /machines/dfa_machine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/machines/dfa_machine.go -------------------------------------------------------------------------------- /machines/machine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/machines/machine.go -------------------------------------------------------------------------------- /machines/machine_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/machines/machine_test.go -------------------------------------------------------------------------------- /queue/queue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/timtadh/lexmachine/HEAD/queue/queue.go --------------------------------------------------------------------------------