diff options
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | ccl.go | 10 | ||||
| -rw-r--r-- | ccl_test.go | 2 | ||||
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | lexer.go | 2 |
5 files changed, 10 insertions, 11 deletions
@@ -1,4 +1,4 @@ -# asspb, the worst human-friendly configuration language +# ccl, the worst human-friendly configuration language Don't like YAML? TOML's nested tables make your head hurt? Give me a few hours, how hard can writing a recursive-descent parser be... @@ -21,6 +21,5 @@ how hard can writing a recursive-descent parser be... } } -See -[https://pkg.go.dev/roseh.moe/pkg/asspb](https://pkg.go.dev/roseh.moe/pkg/asspb) +See [https://pkg.go.dev/roseh.moe/pkg/ccl](https://pkg.go.dev/roseh.moe/pkg/ccl) for the full language spec. @@ -2,8 +2,8 @@ // Mom: no we have textproto at home // textproto at home: // -// The asspb language has similar semantics to JSON, the only exception being -// the lack of null. +// The ccl language has similar semantics to JSON, the only exception being the +// lack of null. // // # Comments // @@ -156,7 +156,7 @@ // # Disclaimer // // This package is still experimental, expect breaking changes. -package asspb +package ccl import ( "bytes" @@ -699,7 +699,7 @@ func unpackStruct(out reflect.Value, fieldMap map[structField]int, msg map[strin return nil } -// Unmarshal parses a asspb message and writes the result into v. v must be a +// Unmarshal parses a ccl message and writes the result into v. v must be a // non-nil pointer to a struct. // // Unmarshal accepts a top-level message, which is equivalent to the "message" @@ -708,7 +708,7 @@ func unpackStruct(out reflect.Value, fieldMap map[structField]int, msg map[strin // key1: "val1" // key2: "val2" // -// The exact semantics of which asspb types map to which Go types is a bit +// The exact semantics of which ccl types map to which Go types is a bit // complicated and I don't feel like writing out all the rules, so suffice it // to say that the usual stuff should work. As a special case, a []byte field // expects a base64-encoded string. diff --git a/ccl_test.go b/ccl_test.go index fdf8b9b..4716c5e 100644 --- a/ccl_test.go +++ b/ccl_test.go @@ -1,4 +1,4 @@ -package asspb +package ccl import ( "fmt" @@ -1,4 +1,4 @@ -module roseh.moe/pkg/asspb +module roseh.moe/pkg/ccl go 1.24 @@ -1,4 +1,4 @@ -package asspb +package ccl import ( "iter" |
