Похожие чаты

Is it possible to find out how many strings have

strings.Reader read so far without incrementing a variable?

11 ответов

22 просмотра

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта