Похожие чаты

Is it possible to find out how many strings have

strings.Reader read so far without incrementing a variable?

11 ответов

8 просмотров

what do you want to do?

you probably mean how many bytes, not strings

ㅤ- Автор вопроса
Roman Sharkov
what do you want to do?

I'm working on that parser I talked about :D I was able to find the right closing tag and parse a whole tag with many same child tags, but it only returns the first occurrence, now I want to store its ending index, and then recall the parse to get more of the tag

ㅤ- Автор вопроса
Roman Sharkov
what you want is an AST

I'm not going for a full parser cause I know I can't write one lool

ㅤ- Автор вопроса
Roman Sharkov
so what exactly are you trying to do?

just a few useful functions, now I'm only able to extract the first occurred tag, my next goal is to extract slices of that tag. So here, I should call traverse again, but with the remaining data from the last traverse. So I was looking to return the last index reader has read, make a new node with the remaining data and call traverse again


just a few useful functions, now I'm only able to ...

what you want is a tokenizer, then your parser should produce an AST

ㅤ- Автор вопроса
Roman Sharkov
what do you want to do?

It’s solved by pushing init with every segment it’s mpd dash stream

Похожие вопросы

Обсуждают сегодня

@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
Did @Beeker really get banned? That's ridiculous. He's one of the few left here with half a brain and you might not always like his narrative @dgb_ycagel , but he often keeps ...
Leroy Gerrits
1
Я тут за тем, чтобы задать вопрос, так как не знаю ассемблер, учу с/с++. Короче, насколько дорога операция перехода в функцию при ее вызове? Дело в том, что в с++ есть макросы...
Максим Рябцев
12
async login(req: Request, res: Response, next: NextFunction): Promise<void> { try { const { errors, input } = await RequestValidator(LoginRequest, req.body...
. .
1
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
А какие чаты вообще в ходу? Auto aim? И что еше
do you think you're better off alone? А
13
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
hello friends. Do you know how can I learn getx? I have a software project that I should deliver it up to 5 weeks later and I need to learn firebase too. I will be thankfull
AmirHossein Razavi
15
Привет, нужен совет старших товарищей. Есть глобальная переменная var DefaultDataFolder:string; инициализируем DefaultDataFolder:='a:\_OUT\'; есть примитивная процедур...
Max Otto
14
Доброе время суток! у меня тут иноды закончились. и понял почему по сути кстит, я периодически очищаю постгрес и сентри контайнер: postgres=# DELETE FROM nodestore_node WHER...
Юсиф Насиров
9
Карта сайта