• 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

programming language


Commit MetaInfo

Revisiónf0a632cd5058e5ced57f88cf75d5a13243c0641e (tree)
Tiempo2022-06-05 22:54:05
Autordhrname <dhrname@joes...>
Commiterdhrname

Log Message

Modify the comment for the parser.hpp

Cambiar Resumen

Diferencia incremental

Binary files a/bin/obj/main.o and b/bin/obj/main.o differ
--- a/include/parser.hpp
+++ b/include/parser.hpp
@@ -1049,9 +1049,13 @@ namespace jstr
10491049 p = nullptr;
10501050 }
10511051 }
1052-
1052+
1053+ /*createPhrase メンバ関数
1054+ * TokenIdが引数であるようなPhrase*型のオブジェクトを返す*/
10531055 Phrase* createPhrase(int32_t);
10541056
1057+ /*setPhraseList メンバ関数
1058+ * Phrase*型のlistに引数出指定したポインタを追加する*/
10551059 void setPhraseList(Phrase*);
10561060
10571061 /*setCoordinate メンバ関数
@@ -1066,6 +1070,8 @@ namespace jstr
10661070 * ただし、非終端記号はコンパクトに折りたたまれた座標空間の点とみなす*/
10671071 bool validateCoordinate();
10681072
1073+
1074+
10691075 /*parse メンバ関数
10701076 * 与えられた文字列stを使って解析し、
10711077 * 抽象構文木を作り出す*/
--- a/main.cpp
+++ b/main.cpp
@@ -131,6 +131,7 @@ int main(int argc, char **argv)
131131 EXPECT(paa->getAbstractSyntaxTree()->isNode(), true);
132132 EXPECT(paa->getAbstractSyntaxTree()->getFirstChild()->isNode(), true);
133133 EXPECT(paa->getAbstractSyntaxTree()->getFirstChild()->getFirstChild()->isCaseOf(typeid(jstr::TestBlockModule*)), true);
134+ EXPECT(paa->validateCoordinate(), false);
134135 delete pa;
135136 delete paa;
136137 pa = nullptr;