Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

language quiz :-)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> General Talk & Fun Stuff
View previous topic :: :: View next topic  
Author Message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Mon Nov 17, 2008 10:04 pm    Post subject: language quiz :-)
Reply with quote

can You tell the language of ....
Code:
++++++++++
[>+++++++>++++++++++>+++>+<<<<-]
>++.                             
>+.                             
+++++++.                         
.                               
+++.                             
>++.                             
<<+++++++++++++++.               
>.                               
+++.                             
------.                         
--------.                       
>+.                             
>.                               

but if You feel that it is too difficult You might try
Code:

PLEASE DO ,1 <- #13
DO ,1 SUB #1 <- #238
DO ,1 SUB #2 <- #112
DO ,1 SUB #3 <- #112
DO ,1 SUB #4 <- #0
DO ,1 SUB #5 <- #64
DO ,1 SUB #6 <- #238
DO ,1 SUB #7 <- #26
DO ,1 SUB #8 <- #248
DO ,1 SUB #9 <- #168
DO ,1 SUB #10 <- #24
DO ,1 SUB #11 <- #16
DO ,1 SUB #12 <- #158
DO ,1 SUB #13 <- #52
PLEASE READ OUT ,1
PLEASE GIVE UP

enjoy icon_biggrin.gif
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Nov 18, 2008 4:16 am    Post subject:
Reply with quote

Is the 1st language TELON where the various characters are defining the map field types (picture clauses and usage)?
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Tue Nov 18, 2008 9:12 am    Post subject:
Reply with quote

The second one is called C-INTERCAL. icon_idea.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Tue Nov 18, 2008 1:42 pm    Post subject: Reply to: language quiz :-)
Reply with quote

good shot, Bharath!
( I guess you put first_name last_name in Your id )

ok ok i' ll answer the first one...
it' s the most amusing language I found around !!

none... note... not foul language the name is brainfuck

and is the language that mostly resembles a Turing Machine
no punched tapes around so consider the array elements as punched tape positions

here is the wonderfully simple syntax

Code:
C Meaning
> increment the pointer (to point to the next cell to the right).
< decrement the pointer (to point to the next cell to the left).
+ increment (increase by one) the byte at the pointer.
- decrement (decrease by one) the byte at the pointer.
. output the value of the byte at the pointer.
, accept one byte of input, storing its value in the byte at the pointer.
[ jump forward to the command after the corresponding ] if the byte at the pointer is zero.
] jump back to the command after the corresponding [ if the byte at the pointer is nonzero.


searching for brainfuck will yield a few links,
... the explanation on wikipedia is not bad at all


by the way both snippets are the "Hello World!" program
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Tue Nov 18, 2008 4:09 pm    Post subject:
Reply with quote

Quote:
good shot, Bharath!

Got a hit in Wikipedia. icon_cool.gif
Quote:
I guess you put first_name last_name in Your id


Good shot Enrico. icon_biggrin.gif

given an alien name, you identified the format. icon_exclaim.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> General Talk & Fun Stuff All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need Help in understanding what is th... mainakdalal PL/I & Assembler 9 Mon Oct 03, 2016 8:03 pm
No new posts Any body aware of CAP-COBOL language? Sachin Raghuwanshi COBOL Programming 4 Tue Aug 02, 2016 9:34 am
No new posts How to declare 9(4) comp-5 field in a... Pavankumar.m PL/I & Assembler 3 Fri Jul 19, 2013 3:16 pm
No new posts NCAR Command Language (NCL) koteswara All Other Mainframe Topics 0 Tue Feb 26, 2013 4:17 pm
No new posts DB2 Stored Procedure (Language COBOL) Santoshkumar Sala DB2 1 Mon Jan 30, 2012 4:20 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us