• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisão3ceee502b4704810abd2ff95514326cc1ddf20a2 (tree)
Hora2018-06-02 18:02:20
Autordhrname <dhrname@user...>
Commiterdhrname

Mensagem de Log

Modify the ST_parse function

Mudança Sumário

Diff

--- a/source_code/shadowstar.c
+++ b/source_code/shadowstar.c
@@ -482,8 +482,13 @@ ST_Binary_Tree ST_parse(ST_Token_Mode *array, size_t length, ST_Ordered_Pair *l
482482 }
483483 ST_freetree(bound_vstacklist);
484484 ST_freetree(cache_nstacklist);
485+
486+ /*rseqはseqを逆向きにしたもの
487+ * ST_reverseNode関数が新規ノードを返すためにこのような形になっている*/
488+ ST_Node rseq = ST_reverseNode(seq);
489+ ST_freetree(seq);
485490
486- return seq;
491+ return rseq;
487492 }
488493
489494 /*ST_eval 関数
Binary files a/source_code/shadowstar.o and b/source_code/shadowstar.o differ
--- a/source_code/startest.c
+++ b/source_code/startest.c
@@ -316,7 +316,7 @@ int main(int argc, char **argv)
316316 varlist = ST_tokenize(u8"謎は「愛を愛する」(愛)", tokens5);
317317 ST_Node btr = ST_parse(tokens5, length, varlist);
318318 assert(ST_getBoundVariable(ST_getNodeValue(btr)) == ST_getItem(varlist, 0));
319- assert(ST_getNodeValue(ST_getPreviousNode(btr)) == ST_second(varlist));
319+ assert( ST_first(ST_getNodeValue(ST_getPreviousNode(btr))) == ST_getItem(varlist, 3) );
320320 ST_freetree(btr);
321321 ST_freelist(varlist);
322322
Binary files a/source_code/startest.o and b/source_code/startest.o differ