Results 83 comments of xushiwei

number with unit: scanner/parser/format #2007

cl: compileNumberUnitLit - https://github.com/goplus/gop/pull/2008 now support unit of `time.Duration`. eg. ```go wait 0.5s wait 5µs ``` It is equivalent to ```go wait 0.5 * time.Second wait 5 * time.Microsecond ```

Convert ```go const unit Distance ( mm = 1 cm = 10 dm = 100 m = 1000 ) ``` into ```go const Gopu_Distance = "mm=1,cm=10,dm=100,m=1000" ```

> but in a 'for loop' statement, the syntax 'a

> but in a 'for loop' statement, the syntax 'a

@niupilot Please add related documentation to the quick start.

examples: * tpl ```go cl := tpl`expr = INT % ("+" | "-")`! echo cl.parseExpr("1+2-3", nil) ``` * json/xml/csv ```go echo json`{"a":1, "b":2}` echo xml`1` echo csv`a,b` ``` * html...

https://github.com/goplus/gop/blob/main/doc/domian-text-lit.md

domainTextLit with args: * https://github.com/goplus/gop/pull/2302 * https://github.com/goplus/gop/pull/2303 ```go // A DomainTextLit node represents a domain-specific text literal. // https://github.com/goplus/gop/issues/2143 // // domainTag`...` // domainTag`> arg1, arg2, ... // ... //...

@niupilot Please add documentation related to domain-specific text literal to the quick start.