1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib
Delyan Angelov 50b73abc62
parser: add p.show() to ease debugging parser problems, that need more context
Using it, produces output like this on stdout:
```
>> vlib/v/tests/typeof_type_test.v:4:        keyword `typeof`  token `(`  token `[`      keyword `fn`                      token `(`  name `s`  name `string`
>> vlib/v/tests/typeof_type_test.v:8:        keyword `typeof`  token `(`  token `[`      name `int`                        token `]`  token `)`  token `.`
>> vlib/v/tests/typeof_type_test.v:9:        keyword `typeof`  token `(`  token `[`      name `int`                        token `]`  token `)`  token `.`
>> vlib/v/tests/typeof_type_test.v:13:       keyword `typeof`  token `(`  token `[`      name `u32`                        token `]`  token `)`  token `.`
>> vlib/v/tests/typeof_type_test.v:14:       keyword `typeof`  token `(`  token `[`      name `u32`                        token `]`  token `)`  token `.`
>> vlib/v/tests/typeof_type_test.v:18:       keyword `typeof`  token `(`  token `[`      name `string`                     token `]`  token `)`  token `.`
```

Note: this tracing output is *deliberately on `stdout`*, instead of `stderr`,
so that you can filter it more easily, without saving it to a file first, i.e.
you can use it while developing/debugging parser issues like this:
`./v -o vnew cmd/v && ./vnew some_file.v | grep some_file.v`

-> this will show only the parsing context for the constructs you are debugging,
for that specific file *only*, instead of for all of `builtin` and the imported files etc.
2022-11-27 11:13:42 +02:00
..
arrays all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
benchmark vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
bitfield all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
builtin all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
cli vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
clipboard fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
compress vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
context vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
crypto all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
datatypes datatypes: fix fsm.set_state() and cleanup fsm module (#16539) 2022-11-27 09:10:08 +02:00
dl vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
dlmalloc
encoding all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
eventbus vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
flag vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
fontstash
gg vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
gx vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
hash all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
io vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
js all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
json all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
log vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
maps all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
math all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
mssql vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
mysql vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
net all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
orm vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
os all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
pg vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
picoev vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
picohttpparser
rand all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
readline vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
regex vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
runtime
semver vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
sokol vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
sqlite vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
stbi vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
strconv strconv: add test_atof_converter to the tests, as suggested by the code review 2022-11-21 07:41:41 +02:00
strings vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
sync all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
szip vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
term term: add term.slow_blink/1 and term.rapid_blink/1 (#16470) 2022-11-18 19:03:14 +02:00
time vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
toml all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
v parser: add p.show() to ease debugging parser problems, that need more context 2022-11-27 11:13:42 +02:00
vweb all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
x all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
.vdocignore
README.md

vlib Documentation

vlib is the term for all modules included by default with V and maintained as part of the V source code repository.

Some included modules depend on third party libraries, and these are kept separate in the thirdparty directory at the root level of the source repository.