forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'implicit' into 'master'
Resolve "parser: implicit Syntax Error" Closes lcompilers#397 See merge request lfortran/lfortran!1038
- Loading branch information
Showing
17 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(TranslationUnit [(Program array7 [] [(Implicit (AttrType TypeDoublePrecision [] ()) [(LetterSpec A H) (LetterSpec O Z)]) (Implicit (AttrType TypeInteger [] ()) [(LetterSpec I N)])] [(Declaration (AttrType TypeInteger [] ()) [(SimpleAttribute AttrParameter)] [(n [] [] 10 Equal ())]) (Declaration () [(AttrDimension [])] [(SJ [(0 N DimensionExpr)] [] () None ()) (DJ [(0 N DimensionExpr)] [] () None ())])] [] [])]) | ||
(TranslationUnit [(Program array7 [] [(Implicit (AttrType TypeDoublePrecision [] ()) [] [(LetterSpec A H) (LetterSpec O Z)]) (Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec I N)])] [(Declaration (AttrType TypeInteger [] ()) [(SimpleAttribute AttrParameter)] [(n [] [] 10 Equal ())]) (Declaration () [(AttrDimension [])] [(SJ [(0 N DimensionExpr)] [] () None ()) (DJ [(0 N DimensionExpr)] [] () None ())])] [] [])]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(TranslationUnit [(Program block1 [] [(Implicit (AttrType TypeInteger [] ()) [(LetterSpec a z)])] [(Declaration (AttrType TypeInteger [] ()) [] [(B [] [] () None ())])] [(Block 0 () [(Use [] mod [(UseSymbol example ())] .true.)] [(Import [] ImportNone)] [] [(= 0 B 10)])] [])]) | ||
(TranslationUnit [(Program block1 [] [(Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec a z)])] [(Declaration (AttrType TypeInteger [] ()) [] [(B [] [] () None ())])] [(Block 0 () [(Use [] mod [(UseSymbol example ())] .true.)] [(Import [] ImportNone)] [] [(= 0 B 10)])] [])]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(TranslationUnit [(BlockData init [] [(Implicit (AttrType TypeInteger [] ()) [(LetterSpec a z)])] [(Declaration () [(SimpleAttribute AttrCommon)] [(range [] [] x0 Equal ()) (() [] [] x1 None ())]) (Declaration () [(AttrData [x0 x1] [1 10])] [])]) (Program block_data1 [] [(Implicit (AttrType TypeInteger [] ()) [(LetterSpec a z)])] [(Declaration () [(SimpleAttribute AttrCommon)] [(range [] [] x0 Equal ()) (() [] [] x1 None ())])] [(Print 0 () [(String "Printing Even number in the Range: ") x0 (String " to ") x1]) (DoLoop 0 () 0 i x0 x1 () [(If 0 () (/= (FuncCallOrArray mod [] [(() i ()) (() 2 ())] [] []) 0) [(Cycle 0 ())] []) (Write 0 [(()) (())] [] [i])])] [])]) | ||
(TranslationUnit [(BlockData init [] [(Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec a z)])] [(Declaration () [(SimpleAttribute AttrCommon)] [(range [] [] x0 Equal ()) (() [] [] x1 None ())]) (Declaration () [(AttrData [x0 x1] [1 10])] [])]) (Program block_data1 [] [(Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec a z)])] [(Declaration () [(SimpleAttribute AttrCommon)] [(range [] [] x0 Equal ()) (() [] [] x1 None ())])] [(Print 0 () [(String "Printing Even number in the Range: ") x0 (String " to ") x1]) (DoLoop 0 () 0 i x0 x1 () [(If 0 () (/= (FuncCallOrArray mod [] [(() i ()) (() 2 ())] [] []) 0) [(Cycle 0 ())] []) (Write 0 [(()) (())] [] [i])])] [])]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(TranslationUnit [(Program common1 [] [(Implicit (AttrType TypeReal [] ()) [(LetterSpec a z)])] [(Declaration (AttrType TypeReal [] ()) [] [(A [] [] () None ()) (B [] [] () None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(sample [] [] A Equal ()) (() [] [] B None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(c [] [] c Equal ()) (b [] [] d Equal ()) (() [] [] e None ()) (() [] [] f None ()) (c [] [] g Equal ()) (() [] [] h None ()) (() [] [] (FuncCallOrArray i [] [(() 5 ())] [] []) None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(() [] [] x None ()) (() [] [] y None ()) (() [] [] (FuncCallOrArray z [] [(() 10 ())] [] []) None ())])] [(= 0 A 10) (= 0 B 20) (SubroutineCall 0 pass [] [] []) (Stop 0 () ())] []) (Subroutine pass [] [] () [] [] [] [(Declaration (AttrType TypeReal [] ()) [] [(A [] [] () None ()) (B [] [] () None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(sample [] [] A Equal ()) (() [] [] B None ())])] [(Print 0 () [A B]) (Return 0 ())] [])]) | ||
(TranslationUnit [(Program common1 [] [(Implicit (AttrType TypeReal [] ()) [] [(LetterSpec a z)])] [(Declaration (AttrType TypeReal [] ()) [] [(A [] [] () None ()) (B [] [] () None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(sample [] [] A Equal ()) (() [] [] B None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(c [] [] c Equal ()) (b [] [] d Equal ()) (() [] [] e None ()) (() [] [] f None ()) (c [] [] g Equal ()) (() [] [] h None ()) (() [] [] (FuncCallOrArray i [] [(() 5 ())] [] []) None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(() [] [] x None ()) (() [] [] y None ()) (() [] [] (FuncCallOrArray z [] [(() 10 ())] [] []) None ())])] [(= 0 A 10) (= 0 B 20) (SubroutineCall 0 pass [] [] []) (Stop 0 () ())] []) (Subroutine pass [] [] () [] [] [] [(Declaration (AttrType TypeReal [] ()) [] [(A [] [] () None ()) (B [] [] () None ())]) (Declaration () [(SimpleAttribute AttrCommon)] [(sample [] [] A Equal ()) (() [] [] B None ())])] [(Print 0 () [A B]) (Return 0 ())] [])]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(TranslationUnit [(Program implicit1 [] [(ImplicitNone []) (ImplicitNone []) (ImplicitNone [(ImplicitNoneExternal 0)]) (ImplicitNone [(ImplicitNoneType)]) (ImplicitNone [(ImplicitNoneExternal 0) (ImplicitNoneType)]) (ImplicitNone [(ImplicitNoneType) (ImplicitNoneExternal 0)]) (Implicit (AttrType TypeReal [] ()) [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeReal [(() 8 Value)] ()) [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeDoublePrecision [] ()) [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeCharacter [] ()) [(LetterSpec () c) (LetterSpec o z)]) (Implicit (AttrType TypeInteger [] ()) [(LetterSpec i n)]) (Implicit (AttrType TypeInteger [] ()) [(LetterSpec () i) (LetterSpec () j) (LetterSpec () k) (LetterSpec () l) (LetterSpec () m) (LetterSpec () n)]) (Implicit (AttrType TypeInteger [] ()) [(LetterSpec () i) (LetterSpec j l) (LetterSpec () m) (LetterSpec () n)]) (Implicit (AttrType TypeInteger [(() 8 Value)] ()) [(LetterSpec () i) (LetterSpec j l) (LetterSpec () m) (LetterSpec () n)]) (Implicit (AttrType TypeInteger [] ()) [(LetterSpec () A) (LetterSpec () C)]) (Implicit (AttrType TypeInteger [(() 4 Value)] ()) [(LetterSpec () C) (LetterSpec D x)]) (Implicit (AttrType TypeLogical [] ()) [(LetterSpec () l) (LetterSpec u z)]) (Implicit (AttrType TypeLogical [(() 4 Value)] ()) [(LetterSpec () l) (LetterSpec u z)]) (Implicit (AttrType TypeComplex [] ()) [(LetterSpec () z)]) (Implicit (AttrType TypeComplex [(() 4 Value)] ()) [(LetterSpec () z)]) (Implicit (AttrType TypeComplex [] ()) [(LetterSpec () C)]) (Implicit (AttrType TypeType [] BLOB) [(LetterSpec () A)]) (Implicit (AttrType TypeClass [] X) [(LetterSpec A b)]) (Implicit (AttrType TypeProcedure [] Y) [(LetterSpec A b)])] [] [] [])]) | ||
(TranslationUnit [(Program implicit1 [] [(ImplicitNone []) (ImplicitNone []) (ImplicitNone [(ImplicitNoneExternal 0)]) (ImplicitNone [(ImplicitNoneType)]) (ImplicitNone [(ImplicitNoneExternal 0) (ImplicitNoneType)]) (ImplicitNone [(ImplicitNoneType) (ImplicitNoneExternal 0)]) (Implicit (AttrType TypeReal [] ()) [] [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeReal [] ()) [(LetterSpec () dp)] [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeReal [(() 8 Value)] ()) [] [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeDoublePrecision [] ()) [] [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeCharacter [] ()) [] [(LetterSpec () c) (LetterSpec o z)]) (Implicit (AttrType TypeCharacter [] ()) [(LetterSpec () id)] [(LetterSpec a z)]) (Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec i n)]) (Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec () i) (LetterSpec () j) (LetterSpec () k) (LetterSpec () l) (LetterSpec () m) (LetterSpec () n)]) (Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec () i) (LetterSpec j l) (LetterSpec () m) (LetterSpec () n)]) (Implicit (AttrType TypeInteger [] ()) [(LetterSpec () dp)] [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeInteger [(() 8 Value)] ()) [] [(LetterSpec () i) (LetterSpec j l) (LetterSpec () m) (LetterSpec () n)]) (Implicit (AttrType TypeInteger [] ()) [] [(LetterSpec () A) (LetterSpec () C)]) (Implicit (AttrType TypeInteger [(() 4 Value)] ()) [] [(LetterSpec () C) (LetterSpec D x)]) (Implicit (AttrType TypeLogical [] ()) [] [(LetterSpec () l) (LetterSpec u z)]) (Implicit (AttrType TypeLogical [] ()) [(LetterSpec () dp)] [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeLogical [(() 4 Value)] ()) [] [(LetterSpec () l) (LetterSpec u z)]) (Implicit (AttrType TypeComplex [] ()) [] [(LetterSpec () z)]) (Implicit (AttrType TypeComplex [] ()) [(LetterSpec () dp)] [(LetterSpec a h) (LetterSpec o z)]) (Implicit (AttrType TypeComplex [] ()) [] [(LetterSpec () C)]) (Implicit (AttrType TypeComplex [(() 4 Value)] ()) [] [(LetterSpec () z)]) (Implicit (AttrType TypeType [] BLOB) [] [(LetterSpec () A)]) (Implicit (AttrType TypeClass [] X) [] [(LetterSpec A b)]) (Implicit (AttrType TypeProcedure [] Y) [] [(LetterSpec A b)])] [] [] [])]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters