display message, ask for age and print age in words,
where message is "Welcome to the example program of The Sensible Language."
ask for x1 means print "What's your age?" and get a line as x1
print x1 in words means:
print the hundreds, tens and units.
where units is num words at index n, where n is the last char of x1 or ""
where tens is num words at index n, where n is x1 at index 2 (backwards) or ""
where hundreds is num words at index n, where n is x1 at index 3 (backwards) or ""
the last char of x1 means x1 at index i, where i is the length of x1 - 1
x1 of words means num words at index x1
num words is a hash-table of nums to strings, containing
"one","two","three","four","five","six","seven","eight","nine".
failing with "".
-- Standard IO library
get a line means get x1 from stdin
get x1 from x2 means, using ffi function `get' as `ffiget', ffiget x2 as x1
print x1 means, using ffi function `putstr', putstr x1
>>3
It uses a built-in foreign function `get', which is written in C[1]. The `get x1 from x2' declaration is for using it the way language “sentences” are used.
>>7 * a printf like function that is fully ISO 9899:1999 (C99) compliant, also having %m as standard and POSIX i18n parameter number modifiers. It also allows gcc warning compatible customer format specifiers (and includes pre-written custom format specifiers for ipv4 and ipv6 addresses, Vstr strings and more)
So let me get this straight.
You claim the printf-life function is C99 compliant (1)
then you say it supports the `m' format modifier (2)
From (1) + (2) we have pure nonsense.
If it were really C99 compliant it would be an uppercase letter (ie, %M) and not %m.
Fucking n00bs.
>>8 You claim the
Er, I didn't write it. But your criticism that the printf-life function does everything that C99 demands, and additionally supports the `m' modifier, is accurate albeit banal.
Name:
Anonymous2008-04-10 17:42
x1 fucked your x2 means x1 applied to x2
cdr fucked your cudder where cudder is cons of "EXPERT" and "PROGRAMMER"
>>9
I am going to email the developer about this tremendous bug.
I'll make sure to express my disappointment with him and how low he now is to my respect-o meter.
Love is over.
vstr/examples/ex_httpd.c: if (sa->sa_family != AF_INET) /* only support IPv4 atm. */ goto sa_fail;
goto sa_fail; oto sa_fail; to sa_fail;
sa_fail; FAIL
7.26 Future library directions [...] 7.26.9 Input/output <stdio.h>
1. Lowercase letters may be added to the conversion specifiers and length modifiers in fprintf and fscanf. Other characters may be used in extensions.
>>17
%m invokes undefined behavior which instantly makes it non-compliant regardless of what 7.26.9 has to say.
Read 7.19.6.1 If a conversion specification is invalid, the behavior is undefined. If any argument is not the correct type for the corresponding conversion specification, the behavior is undefined.
Undefined behavior = non-compliant.
Sorry, you lost.
Name:
Anonymous2008-04-10 18:09
>>21
Except it IS defined by the library, you complete and utter fool.
Name:
Anonymous2008-04-10 18:10
[b]FUCK YOUR CUDDER NIGGER
Name:
Anonymous2008-04-10 18:11
the string library works. get over it. what paradigm is your language, OP? looks imperative, just with weird syntax
>>22
Irrelevant.
A library can have extensions, and in which particular case stands true.
What's bad is the false claim that his function is C99 compliant.
ME?! A FOOL? HA!
That was.. rather amusing, but now I must leave. It can't get any better than this.
sounds awfully wordy for a code and needs more parenthesissessssHURRRRR LISP LISP LISP
Name:
Anonymous2008-04-10 19:20
>>29
That's the idea. It's kind of like predicates with place structure. I got the idea when thinking about how to have a programming language that's easy to talk about in person. Have a go at reading it aloud, I think it reads better than pseudocode.
>>31
I tried. can't find anything. relevant to grammar.
Name:
Anonymous2008-04-10 19:24
Reminds me of Lojban.
Name:
Anonymous2008-04-10 20:52
interesting way of binding variables
Name:
Anonymous2008-04-10 22:21
>>30
Unfortunately, natural languages are very ambiguous and context-sensitive, both very undesirable traits for a programming language.
Name:
Anonymous2008-04-11 9:31
>>35
Interestingly, in Haskell, what does show foo mean?
Name:
Anonymous2008-04-11 10:11
>>36
It invokes the show function with the argument foo, where foo is an instance of the Show class, the return value is a list of Char.
Name:
Anonymous2008-04-11 12:19
>>37
Correct. foo is type Show a => a. The list that is returned is dependent on the type of a. Thus, there exists context-sensitivity in a programming language.
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
Name:
Anonymous2013-01-19 23:09
/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.