{"action":"created","issue":{"url":"https://api.github.com/repos/OpenFortranProject/ofp-sdf/issues/13","repository_url":"https://api.github.com/repos/OpenFortranProject/ofp-sdf","labels_url":"https://api.github.com/repos/OpenFortranProject/ofp-sdf/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/OpenFortranProject/ofp-sdf/issues/13/comments","events_url":"https://api.github.com/repos/OpenFortranProject/ofp-sdf/issues/13/events","html_url":"https://github.com/OpenFortranProject/ofp-sdf/issues/13","id":145578130,"number":13,"title":"`make check` in ofp-sdf/fortran/traverse fail","user":{"login":"xg-wang","id":8369011,"avatar_url":"https://avatars.githubusercontent.com/u/8369011?v=3","gravatar_id":"","url":"https://api.github.com/users/xg-wang","html_url":"https://github.com/xg-wang","followers_url":"https://api.github.com/users/xg-wang/followers","following_url":"https://api.github.com/users/xg-wang/following{/other_user}","gists_url":"https://api.github.com/users/xg-wang/gists{/gist_id}","starred_url":"https://api.github.com/users/xg-wang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xg-wang/subscriptions","organizations_url":"https://api.github.com/users/xg-wang/orgs","repos_url":"https://api.github.com/users/xg-wang/repos","events_url":"https://api.github.com/users/xg-wang/events{/privacy}","received_events_url":"https://api.github.com/users/xg-wang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-04-04T04:04:28Z","updated_at":"2016-12-30T00:17:08Z","closed_at":"2016-12-30T00:17:08Z","body":"```\nsglri -i testfile.f90 -p ../syntax/Fortran.tbl -o testfile.f90.aterm\n./traverse testfile.f90.aterm\n\nProgram(\"!! Hellno\\n!\\n\",[MainProgram(ProgramStmt(\"33\",\"main\",eos(\"\\n  \")),initial-spec-part([],[]),SpecAndExecPart([TypeDeclarationStmt(no-label,IntrinsicType(INTEGER(no-kind)),comma-list([ASYNCHRONOUS]),[EntityDecl(\"i\",no-list,no-list,no-char-length,no-init)],eos(\"\\n\"))]),no-subprogram-part,EndProgramStmt(\"13\",\"main\",eos(\"\\n\")))])\n\n\nProgram: Program(\"!! Hellno\\n!\\n\",[MainProgram(ProgramStmt(\"33\",\"main\",eos(\"\\n  \")),initial-spec-part([],[]),SpecAndExecPart([TypeDeclarationStmt(no-label,IntrinsicType(INTEGER(no-kind)),comma-list([ASYNCHRONOUS]),[EntityDecl(\"i\",no-list,no-list,no-char-length,no-init)],eos(\"\\n\"))]),no-subprogram-part,EndProgramStmt(\"13\",\"main\",eos(\"\\n\")))])\n\nProgramUnit: MainProgram(ProgramStmt(\"33\",\"main\",eos(\"\\n  \")),initial-spec-part([],[]),SpecAndExecPart([TypeDeclarationStmt(no-label,IntrinsicType(INTEGER(no-kind)),comma-list([ASYNCHRONOUS]),[EntityDecl(\"i\",no-list,no-list,no-char-length,no-init)],eos(\"\\n\"))]),no-subprogram-part,EndProgramStmt(\"13\",\"main\",eos(\"\\n\")))\n\nmake: *** [check] Error 1\n```\n\nIt seems the MainProgram match failed.\n"},"comment":{"url":"https://api.github.com/repos/OpenFortranProject/ofp-sdf/issues/comments/269713955","html_url":"https://github.com/OpenFortranProject/ofp-sdf/issues/13#issuecomment-269713955","issue_url":"https://api.github.com/repos/OpenFortranProject/ofp-sdf/issues/13","id":269713955,"user":{"login":"rasmussn","id":1894946,"avatar_url":"https://avatars.githubusercontent.com/u/1894946?v=3","gravatar_id":"","url":"https://api.github.com/users/rasmussn","html_url":"https://github.com/rasmussn","followers_url":"https://api.github.com/users/rasmussn/followers","following_url":"https://api.github.com/users/rasmussn/following{/other_user}","gists_url":"https://api.github.com/users/rasmussn/gists{/gist_id}","starred_url":"https://api.github.com/users/rasmussn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasmussn/subscriptions","organizations_url":"https://api.github.com/users/rasmussn/orgs","repos_url":"https://api.github.com/users/rasmussn/repos","events_url":"https://api.github.com/users/rasmussn/events{/privacy}","received_events_url":"https://api.github.com/users/rasmussn/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T00:17:08Z","updated_at":"2016-12-30T00:17:08Z","body":"The file ofp-sdf/fortran/trans/fast2pp.str shows how to the AST is traversed in preparation to unparsing (pretty printing).  The format for OFP Fortran AST (FAST) will be defined by the file ofp-sdf/fortran/syntax/FAST.rtg (and FAST.str).  One can traverse any ATerm file that follows the regular tree grammar defined in ofp-sdf/fortran/syntax/FAST.rtg using strategies defined in an *.str file with the tools in StrategoXT.\r\n\r\nThe file fop-sdf/fortran/trans/fast2pp.str demonstrates how to rewrite a file containing FAST ATerms to a file containing ATerms that can be printing using the pretty printing rules in the file ofp-sdf/fortran/pp/Fortran.pp\r\n\r\nThis is a much improved way to work with an AST than the actions provided by the Java interface."}}
{"actor":{"display_login":"rasmussn"}}