• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

programming language


Commit MetaInfo

Révision51dd2f90f3116c725b9c0e63e28e895c67bd1479 (tree)
l'heure2023-03-30 23:24:04
Auteurdhrname <dhrname@joes...>
Commiterdhrname

Message de Log

Modify the BNF for module_statement

Change Summary

Modification

Binary files a/bin/obj/main.o and b/bin/obj/main.o differ
--- a/include/phrase.hpp
+++ b/include/phrase.hpp
@@ -292,7 +292,6 @@ namespace jstr
292292 statement_list
293293 BLOCKEND
294294 modules_statement
295- | END
296295 | <ε>*/
297296 {CLASS
298297 , IDENTIFIER
@@ -308,7 +307,6 @@ namespace jstr
308307 , statement_list
309308 , BLOCKEND
310309 , modules_statement}
311- ,{END, 0, 0, 0, 0, 0, 0, 0, 0, 0}
312310 ,{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0}
313311 ,{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
314312 ,{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
@@ -316,6 +314,7 @@ namespace jstr
316314 ,{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
317315 ,{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
318316 ,{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
317+ ,{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
319318 }
320319 , {
321320 /*prefix_class_list: RATIONALLEFT, IDENTIFIER, prefix_class_list
--- a/main.cpp
+++ b/main.cpp
@@ -445,7 +445,7 @@ int main(int argc, char **argv)
445445 EXPECT(firstset.contains((int32_t)jstr::parser::terminal::CLASS), true);
446446 EXPECT(firstset.contains((int32_t)jstr::parser::terminal::INCLUDE), true);
447447 EXPECT(firstset.contains((int32_t)jstr::parser::terminal::MAIN), true);
448- EXPECT(firstset.contains((int32_t)jstr::parser::terminal::END), true);
448+ EXPECT(firstset.contains((int32_t)jstr::parser::terminal::END), false);
449449 EXPECT(firstset.contains((int32_t)jstr::parser::terminal::JBEGIN), false);
450450 metaphr->setSymbolId((int32_t)jstr::parser::nonterminal::equality_operator);
451451 std::unordered_set<int32_t> firstset2 = metaphr->getFirstSet();