Ring (programming language): Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 74:
</pre>
 
===Change the Keywordskeywords and Operatorsoperators===
 
'''Ring''' supports changing the language [[Reserved word|keywords]] and [[Operator (computer programming)|operators]].
Line 127:
<ref name="helloworldstyles">{{cite web |url=https://www.codeproject.com/Tips/1222859/Different-styles-for-writing-Hello-World-program-i |title=Different styles for writing Hello World program in the Ring programming language |author=Rubin Liu |date=28 December 2017 |work=codeproject.com |publisher=[[Code Project]]}}</ref><ref name="Ring Programming Tutorial">{{cite web |url=https://www.youtube.com/watch?v=7BqoQldx0Pk&list=PL8SruvH85P0uA8ggijCQUR9tXAXF4bmtu&index=2 |title=Ring programming tutorial |author=Roshan Ali |date=4 June 2018 |publisher=[[YouTube]]}}</ref>
 
===Loop Commandcommand===
 
The Loop command can take an integer to apply the continue semantics to enclosing outer loops<ref name="rangakrish2">{{cite web |url=https://web.archive.org/web/20230323171354/https://www.rangakrish.com/index.php/2021/08/21/loop-command-in-ring-programming-language/ |title="Loop" Command in Ring Programming Language |author= Dr. Rangarajan Krishnamoorthy |date=21 August 2021 |publisher=rangakrish.com}}</ref>
Line 145:
</pre>
 
===Object-oriented Oriented Programmingorogramming===
 
Ring supports Objectobject-oriented Oriented Programmingprogramming (Classesclasses, Objectsobjects, Compositioncomposition, Inheritanceinheritance, Encapsulationencapsulation, etc.)<ref>{{Cite web|url=https://ring-lang.github.io/doc1.16/oop.html|title = Object Oriented Programming (OOP) — Ring 1.16 documentation}}</ref>
 
<pre>
Line 172:
==Implementation==
 
===Compiler and Virtualvirtual Machinemachine===
 
[[File:Ringlang shot10.jpg|thumb|300px|Ring VM implementation using PWCT - Virtual Machine Instructions]]
Line 178:
Ring programs are not [[interpreted language|interpreted]] directly from the textual Ring file, but are [[compiler|compiled]] into [[bytecode]], which is then run on the Ring [[virtual machine]]. The compilation process is typically invisible to the user and is performed at [[Run time (program lifecycle phase)|run-time]], but it can be done offline in order to increase loading performance or reduce the memory footprint of the host environment by leaving out the compiler.
 
The [[Compilercompiler]] and the [[Virtualvirtual Machinemachine]] are designed using [[Visual programming language|Visualvisual Programmingprogramming]] through the [[PWCT|Programming Without Coding Technology]] software then the [[C Programming(programming Languagelanguage)|C]] code is generated.
 
===Extensions===