diff options
author | Adrian Thurston <thurston@colm.net> | 2019-12-11 18:44:47 +0200 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2019-12-11 18:44:47 +0200 |
commit | 38d2a988b816471e2cf2f414773470e28b39c93c (patch) | |
tree | 38ebf32f330c905ef24f1c3502d1d62a9964f287 /grammar/go/parsego.lm | |
parent | 900189a4d23f0180970f22479f44377973a2d330 (diff) | |
download | colm-38d2a988b816471e2cf2f414773470e28b39c93c.tar.gz |
go grammar: started with the unicode definitions
Generating the utf8 encoded unicode defintitions that are referenced in the Go
specification. Can start to build the grammar with these definitions on hand.
Diffstat (limited to 'grammar/go/parsego.lm')
-rw-r--r-- | grammar/go/parsego.lm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/grammar/go/parsego.lm b/grammar/go/parsego.lm new file mode 100644 index 00000000..659fcb0e --- /dev/null +++ b/grammar/go/parsego.lm @@ -0,0 +1,11 @@ +include 'go.lm' + +parse P: program [stdin] + +if !P { + send stderr "parse error: [error] + exit(1) +} +else { + print [P] +} |