S
S
Singularity2014-03-16 19:03:33
C++ / C#
Singularity, 2014-03-16 19:03:33

Parsing a simple language - what books are there?

Hello!
I want to make my own analogue of LING, and therefore I need to write an analysis of a simple language. And I don't know how to do it.
Are there any books, entry-level articles for such tasks?
Preferably in Russian.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Starkov, 2014-03-16
@Singularity

In Russian, it’s not enough for beginners,
for example
gen.lib.rus.ec/book/index.php?md5=421FC4367D15E9A1...
In English, here
stackoverflow.com/questions/1669/learning-to-write...
If you want understand everything yourself, then
start with the methods of recursive descent,
and the second simple way is to convert to Polish notation (not only formulas are possible, but also simple languages ​​​​(the interpreter is as simple as three rubles it turns out))

A
AxisPod, 2014-03-18
@AxisPod

I understand correctly, you want linq?
I would not advise you to take on this without knowing how to implement it.
C++ doesn't provide almost any options at runtime. Here you need hard template magic, and for this, first read Jeff Alger: C ++ for real programmers, then Alexandrescu Moder C ++ Design, then the book from the authors of boost.mpl (alas, I don’t remember the name), but only after that you can start trying.
And in the end, at best, you get a Frankenstein from defines and templates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question