IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

language quiz :-)


IBM Mainframe Forums -> General Talk & Fun Stuff
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Nov 17, 2008 10:04 pm
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Nov 18, 2008 1:42 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> General Talk & Fun Stuff

 


Similar Topics
Topic Forum Replies
No new posts IMS DB using Natural Language IMS DB/DC 0
No new posts Usage of processor directive and firs... PL/I & Assembler 4
No new posts Advanced Assembler Language and MVS I... All Other Mainframe Topics 0
No new posts StreamWeaver language reference Compuware & Other Tools 1
No new posts Need Help in understanding what is th... PL/I & Assembler 9
Search our Forums:

Back to Top