• 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

Revision0c30e9753121ef534c18cc7802eb4eb8d1078828 (tree)
Time2023-03-24 23:37:46
Authordhrname <dhrname@joes...>
Commiterdhrname

Log Message

Add the setFollowSet member function

Change Summary

Incremental Difference

Binary files a/bin/obj/main.o and b/bin/obj/main.o differ
--- a/include/phrase.hpp
+++ b/include/phrase.hpp
@@ -1321,6 +1321,10 @@ namespace jstr
13211321 * 非終端記号を示す引数nextidを元にFOLLOW集合を設定する*/
13221322 virtual void setFollowSetBySymbolId(const int32_t);
13231323
1324+ /*setFollowSet メンバ関数
1325+ * coordinateXメンバなどを参考にFOLLOW集合を設定する*/
1326+ virtual void setFollowSet();
1327+
13241328 /*getFollowSet メンバ関数
13251329 * BNF定義の座標を元にFOLLOW集合を求める*/
13261330 virtual std::unordered_set<int32_t>& getFollowSet();
--- a/main.cpp
+++ b/main.cpp
@@ -738,6 +738,7 @@ int main(int argc, char **argv)
738738 TRY_EX(phra->setCoordinate(INT_MAX, INT_MIN, 0));
739739 jstr::MetaPhrase* phrb = new jstr::MetaPhrase();
740740 TRY_EX(phrb->setSymbolId(BNF_NONTERMINAL_LENGTH));
741+ TRY_EX(phrb->setFollowSet());
741742 delete phra;
742743 delete phrb;
743744 phra = nullptr;