mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 10:15:36 +00:00
typedecl-parse UT
This commit is contained in:
parent
c40880e4f3
commit
cafc8a1cb9
2 changed files with 18 additions and 3 deletions
|
|
@ -105,3 +105,18 @@ var TYPE_NAMES = [MT_DIM]string{
|
|||
"array",
|
||||
"map",
|
||||
}
|
||||
|
||||
// TODO: comment more re typedecls
|
||||
type MVTypeMask int
|
||||
|
||||
const (
|
||||
MT_TYPE_MASK_STRING MVTypeMask = (1 << MT_STRING) | (1 << MT_VOID)
|
||||
MT_TYPE_MASK_INT = 1 << MT_INT
|
||||
MT_TYPE_MASK_FLOAT = 1 << MT_FLOAT
|
||||
MT_TYPE_MASK_NUM = (1 << MT_INT) | (1 << MT_FLOAT)
|
||||
MT_TYPE_MASK_BOOL = 1 << MT_BOOL
|
||||
MT_TYPE_MASK_ARRAY = 1 << MT_ARRAY
|
||||
MT_TYPE_MASK_MAP = 1 << MT_MAP
|
||||
MT_TYPE_MASK_VAR = (1 << MT_VOID) | (1 << MT_STRING) | (1 << MT_INT) |
|
||||
(1 << MT_FLOAT) | (1 << MT_BOOL) | (1 << MT_ARRAY) | (1 << MT_MAP)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ TOP OF LIST:
|
|||
* window.mlr, window2.mlr -> doc somewhere
|
||||
|
||||
* UDF nexts:
|
||||
o typedecls
|
||||
o is_x and asserting_x
|
||||
o put -s ...
|
||||
o take another look at mlr -n and seqgen -- ?
|
||||
- rand-walk seqgen-then example
|
||||
- mlr -n put -f mand.mlr
|
||||
o regexes & associated functions -- necessary or not?
|
||||
|
||||
! put -s ...
|
||||
! is_x and asserting_x
|
||||
! local vars w/ typing; UDFs with typing at parameters & retvals
|
||||
* Check for "Options:" in all mappers
|
||||
* check for `f.Value` reassigned in all mappers -- reflects true default?
|
||||
* UDS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue