FlogScript

From Esolang

Jump to: navigation, search

FlogScript is a program language similar to GolfScript but it is different. No documentation yet, read the examples and source code to try to figure it out.

[edit] Examples

Factorial example:

{
 ,{)}%A*
}fac:

5 fac~ P.

Check if a sentence is a palindrome:

{Evade me Dave!}
Su{/[^A-Z]/}{;{}}S~.Ar=P.

Convert roman numbers to decimal:

0.:Il1/Ar{[1{.5*.2*}3*~]\{IVXLCDM}1/?=._-Ms){_1*}?.Ma:-}/P.

Underload:

Ia:
{
 [
  {\}
  {.}
  {;}
  {+}
  {_{)()}S0\:}
  {{(}\+{)}+}
  {_+:}
  {P.}
  {}
 ]
 _(\:
 {~:!*(a^S}1/?=~
 _,0=!F[
}~

"Strange Numbers" from perl golf challenge:

Il~.2/^M2P,

Beer program:

99{
 .P. { bottles of beer on the wall}P,
 .P. { bottles of beer}P,
 {Take one down and pass it around}P,
 ( .!F]
 .P. { bottles of beer on the wall}P,P_
 F<
}~{No more bottles of beer on the wall}P,

ROT13:

#{A:Za:z}Sx{N:ZA:M}Sx.Sl+St

Display printable characters ASCII table:

32"{[?>!+]}Sb;16/A_100/P.

Reverse order of lines in input:

)Ar

Reverse order of characters on each line in input:

"Ar

[edit] External resources

Personal tools