Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ante #916

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
7 changes: 4 additions & 3 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ You can also request a new language to be added to the list, just leave a commen
- [ ] [CL (OS/400)](https://www.ibm.com/support/knowledgecenter/en/SSAE4W_7.1.0/com.ibm.etools.iseries.pgmgd.doc/evfclmst124.htm)
- [x] [Clarion](https://en.wikipedia.org/wiki/Clarion_(programming_language))
- [x] [Clay](https://rosettacode.org/wiki/Hello_world/Text#Clay)
- [ ] [CLC-INTERCAL](http://esolangs.org/wiki/CLC-INTERCAL)
- [x] [CLC-INTERCAL](http://esolangs.org/wiki/CLC-INTERCAL)
- [x] [Clean](https://rosettacode.org/wiki/Hello_world/Text#Clean)
- [ ] [ClearBF](http://esolangs.org/wiki/ClearBF)
- [ ] [Clem](http://esolangs.org/wiki/Clem)
Expand Down Expand Up @@ -465,6 +465,7 @@ You can also request a new language to be added to the list, just leave a commen
- [ ] [Déjà Vu](https://rosettacode.org/wiki/Hello_world/Text#D.C3.A9j.C3.A0_Vu)
- [x] [Delphi](https://en.wikipedia.org/wiki/Delphi_(programming_language))/[Object Pascal](https://en.wikipedia.org/wiki/Object_Pascal)
- [ ] [Deltaplex](http://esolangs.org/wiki/Deltaplex)
- [x] [Deno](https://deno.land/)
- [ ] [Dependently Typed Binary Lambda Calculus](http://esolangs.org/wiki/Dependently_Typed_Binary_Lambda_Calculus)
- [x] [Derpcode](http://esolangs.org/wiki/Derpcode)
- [x] [Derplang](http://esolangs.org/wiki/Derplang)
Expand Down Expand Up @@ -892,7 +893,7 @@ You can also request a new language to be added to the list, just leave a commen
- [ ] [Liquid](http://esolangs.org/wiki/Liquid)
- [x] [Lisaac](https://rosettacode.org/wiki/Hello_world/Text#Lisaac)
- [x] [Lisp]()
- [ ] [ListLang](http://esolangs.org/wiki/ListLang)
- [x] [ListLang](http://esolangs.org/wiki/ListLang)
- [ ] [Little](https://rosettacode.org/wiki/Hello_world/Text#Little)
- [x] [LiveCode](https://rosettacode.org/wiki/Hello_world/Text#LiveCode)
- [x] [LLL](http://esolangs.org/wiki/LLL)
Expand Down Expand Up @@ -1707,7 +1708,7 @@ You can also request a new language to be added to the list, just leave a commen
- [x] [XLISP](https://rosettacode.org/wiki/Hello_world/Text#XLISP)
- [x] [XPL0](https://rosettacode.org/wiki/Hello_world/Text#XPL0)
- [ ] [XPL](https://en.wikipedia.org/wiki/XPL)
- [ ] [XQuery](https://en.wikipedia.org/wiki/XQuery)
- [x] [XQuery](https://en.wikipedia.org/wiki/XQuery)
- [x] [XRF](http://esolangs.org/wiki/XRF)
- [ ] [XS](http://esolangs.org/wiki/XS)
- [x] [XSLT](https://rosettacode.org/wiki/Hello_world/Text#XSLT)
Expand Down
23 changes: 23 additions & 0 deletions examples/c/CLC-Intercal.clc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
DO ,1 <- #18

DO ,1 SUB #1 <- #20
DO ,1 SUB #2 <- #31
DO ,1 SUB #3 <- #1
DO ,1 SUB #4 <- #19
DO ,1 SUB #5 <- #19
DO ,1 SUB #6 <- #24
DO ,1 SUB #7 <- #27
DO ,1 SUB #8 <- #12
DO ,1 SUB #9 <- #4
DO ,1 SUB #10 <- #31
DO ,1 SUB #11 <- #18
DO ,1 SUB #12 <- #31
DO ,1 SUB #13 <- #24
DO ,1 SUB #14 <- #10
DO ,1 SUB #15 <- #19
DO ,1 SUB #16 <- #9
DO ,1 SUB #17 <- #27
DO ,1 SUB #18 <- #13

PLEASE READ OUT ,1
PLEASE GIVE UP
5 changes: 5 additions & 0 deletions examples/c/Cpp/C++_11.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <iostream>
using namespace std;
int main(){
cout<<"Hello World!"<<endl;
}
69 changes: 69 additions & 0 deletions examples/c/Cpp/C++_12.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#include<cstdio>

template<typename _Tp,_Tp val>
struct integral_constant
{
static const _Tp value=val;

typedef _Tp value_type;
typedef integral_constant<_Tp,val> type;

static const _Tp &get_value(){return value;}
};

template<int val>
struct int_constant:integral_constant<int,val>
{
};

const int P=998244353;

template<typename _Tp,typename _Up>
struct mult_type:int_constant<int((long long)_Tp::value*_Up::value%P)>
{
};

template<typename _Tp,typename _Up>
struct power_type:mult_type<
mult_type<
power_type<_Tp,int_constant<_Up::value/2> >,
power_type<_Tp,int_constant<_Up::value/2> >
>,
power_type<_Tp,int_constant<_Up::value%2> >
>
{};

template<typename _Tp>
struct power_type<_Tp,int_constant<1> >:_Tp
{};

template<typename _Tp>
struct power_type<_Tp,int_constant<0> >:int_constant<1>
{};

const char ans[14]=
{
power_type<int_constant<429799652>,int_constant<P-2> >::value,
power_type<int_constant<889524671>,int_constant<P-2> >::value,
power_type<int_constant<619281219>,int_constant<P-2> >::value,
power_type<int_constant<619281219>,int_constant<P-2> >::value,
power_type<int_constant<413686849>,int_constant<P-2> >::value,
power_type<int_constant<68062115>,int_constant<P-2> >::value,
power_type<int_constant<967049217>,int_constant<P-2> >::value,
power_type<int_constant<989855745>,int_constant<P-2> >::value,
power_type<int_constant<413686849>,int_constant<P-2> >::value,
power_type<int_constant<849383353>,int_constant<P-2> >::value,
power_type<int_constant<619281219>,int_constant<P-2> >::value,
power_type<int_constant<828542813>,int_constant<P-2> >::value,
power_type<int_constant<756245722>,int_constant<P-2> >::value,
0
};





int main()
{
puts(ans);
}
6 changes: 6 additions & 0 deletions examples/d/Deno.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { serve } from "https://deno.land/[email protected]/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}
1 change: 1 addition & 0 deletions examples/l/ListLang
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0dlroW391+*2+491+*4+olleH["],
1 change: 1 addition & 0 deletions examples/p/Python/Python_20.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import __hello__
7 changes: 7 additions & 0 deletions examples/p/Python/Python_21.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
a='dlroW olleH'
a=list(a)
i=len(a)-1
while(i>=0):
print(a[i],end="")
i-=1
print()
14 changes: 14 additions & 0 deletions examples/p/Python/Python_22.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class Hello:

def __init__(self, say):
self.say = say

def iamsay(self):
print("say : %s" %(self.say))

def main():
h = new Hello("Hello World")
h.iamsay()

if __name__ == "__main__":
main()
6 changes: 6 additions & 0 deletions examples/r/Rust_3.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* tanangular helloworld */

fn main() {
let s1 = String::from("Hello World");
println!("{}", s1)
}
6 changes: 6 additions & 0 deletions examples/x/Xquery.xqy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
xquery version "1.0";
let $message := 'Hello World!'
return
<output>
<message>{$message}</message>
</output>