• 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

Revision322f1d13cf52fad90ebc999ed8580ac82da6809e (tree)
Time2023-01-23 23:30:36
Authordhrname <dhrname@joes...>
Commiterdhrname

Log Message

Modify the BNF

Change Summary

Incremental Difference

--- a/include/parser.hpp
+++ b/include/parser.hpp
@@ -233,7 +233,7 @@ namespace jstr
233233 | MAIN
234234 COLON
235235 statement_list
236- LINEEND
236+ BLOCKEND
237237 modules_statement
238238 | END
239239 | <ε>*/
@@ -278,7 +278,6 @@ namespace jstr
278278 , {
279279 /*class_body: declaration_list
280280 DEFINE
281- INDENT
282281 functor_list
283282 BLOCKEND*/
284283 {declaration_list, DEFINE, INDENT, functor_list, BLOCKEND}
@@ -343,8 +342,7 @@ namespace jstr
343342 /*statement_list :
344343 | INDENT
345344 statement_list
346- | DEDENT
347- statement_list
345+ DEDENT
348346 | statement
349347 statement_list
350348 | declaration
@@ -352,8 +350,7 @@ namespace jstr
352350 | LINEEND
353351 | <ε>*/
354352 {INDENT
355- , statement_list}
356- ,{DEDENT, statement_list}
353+ , statement_list, DEDENT}
357354 ,{statement, statement_list}
358355 ,{declaration, statement_list}
359356 ,{LINEEND}
@@ -363,6 +360,7 @@ namespace jstr
363360 ,{}
364361 ,{}
365362 ,{}
363+ ,{}
366364 }
367365 , {
368366 /*statement : case_statement
@@ -483,14 +481,12 @@ namespace jstr
483481 IDENTIFIER
484482 COLON
485483 statement_list
486- DEDENT
487484 case_type_list
488485 | <ε>*/
489486 {TYPE
490487 , IDENTIFIER
491488 , COLON
492489 , statement_list
493- , DEDENT
494490 , case_type_list}
495491 ,{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0}
496492 ,{}