Well, let's think it through together, and then write out the details.
At a high level, this is going to be:
an element , an element, and then Empty.
So we're going to end up making a list
that has element 1 in it and element 2 in it,
and then nothing else--
based on this rule up here, where we just make a bigger and bigger list,
out of the list containing the first element
and everything else we've gathered up.
So this will be the final value of our parse tree,
corresponding to this more graphical parse tree--
really more of a list, but a lot of things in computer science are.
Rama's Journey is more commonly known as the Ramayana.
It's a Sanskrit epic that's a very important part of the Hindu canon
and it explores human values and Dharma.
If you haven't already had a chance to read it,
I strongly encourage you to make a rendezvous with Rama.
It's time well spent.
では詳しく見ていきましょう
一番上の階層はelt、elt、空となります
リストは[elt,elt, ]と書き
最後は空です
1つ目の規則のように最初の要素に
あとから要素を足して長いリストを作ります
最終的な値です
解析木が味気ないリストになりましたが
これがコンピュータ・サイエンスです
Rama’s Journeyは「ラーマーヤナ」として
知られる ヒンドゥー教の代表的な詩の1つです
人生の価値や秩序について書かれています
まだ読んだことがなければ
ぜひ読んでみてください
一読の価値ありです
Bem, vamos pensar sobre isso juntos.
No nível mais alto, isto será:
um elemento, um elemento, e depois nada.
Então, vamos acabar construindo uma lista
que tem elt[1] e elt[2],
e nada além disso --
com base nesta regra aqui, onde construímos listas cada vez maiores,
a partir da lista que contém o primeiro elemento
e tuo o mais que obtivemos aqui.
Então, este é o valos final da nossa árvore de parsing,
correpondente a esssa árvore de parsing mais gráfica --
é mais como uma lista, mas muita coisa em comptação é representada assim.
Rama's journey é mais comumente conhecido como Ramayana --
é um épico em sânscrito, que é parte importante do cânone hindu
e explora valores humanos e o Dharma.
Se voc6e ainda não teve chance de lê-lo,
eu o encorajo fortemente a um encontro com Rama --
vale à pena!