Statement separator: Difference between revisions

Jump to navigation Jump to search
14 bytes added ,  23:13, 10 November 2022
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
In Iverson's Dictionary of APL <ref>[[Kenneth E. Iverson|Iverson, Kenneth]]. [https://www.jsoftware.com/papers/APLDictionary1.htm#3e "Dictionary of APL"]. [[Sansom]] 1987.</ref> he states "expressions using the statement separator <syntaxhighlight lang=apl inline>⋄</syntaxhighlight> can be mimicked by expressions using the verb left [[Identity]]. The primary difference is that the separation imposed by <syntaxhighlight lang=apl inline>⊣</syntaxhighlight> follows the normal rules for order of execution."  
In Iverson's Dictionary of APL <ref>[[Kenneth E. Iverson|Iverson, Kenneth]]. [https://www.jsoftware.com/papers/APLDictionary1.htm#3e "Dictionary of APL"]. [[Sansom]] 1987.</ref> he states "expressions using the statement separator <syntaxhighlight lang=apl inline>⋄</syntaxhighlight> can be mimicked by expressions using the verb left [[Identity]]. The primary difference is that the separation imposed by <syntaxhighlight lang=apl inline>⊣</syntaxhighlight> follows the normal rules for order of execution."  


[[APL/700]] uses a semicolon to achieve the same effect as the left tack <syntaxhighlight lang=apl inline>⊣</syntaxhighlight>.
As an example [[APL/700]] uses a semicolon to achieve the same effect as the left tack <syntaxhighlight lang=apl inline>⊣</syntaxhighlight>.


According to the Sharp APL Reference Manual<ref>[[Paul Berry|Berry, Paul]]. [https://archive.org/details/sharp-apl-reference-manual_202108 "Sharp APL Reference Manual"]. [[IP Sharp]] 1987.</ref> [[branching]] <syntaxhighlight lang=apl inline>→</syntaxhighlight> takes precedence over statement separators. ie "If the expression to the right of the branch is not empty, the system goes immediately to the line whose number is the first element in that expression"  
According to the Sharp APL Reference Manual<ref>[[Paul Berry|Berry, Paul]]. [https://archive.org/details/sharp-apl-reference-manual_202108 "Sharp APL Reference Manual"]. [[IP Sharp]] 1987.</ref> [[branching]] <syntaxhighlight lang=apl inline>→</syntaxhighlight> takes precedence over statement separators. ie "If the expression to the right of the branch is not empty, the system goes immediately to the line whose number is the first element in that expression"  
39

edits

Navigation menu