I had never really thought about whether a symbol could be a number in Lisp, so I played around with it today:
> '1
1
> (+ '1 '1)
2
> (+ '1 1)
2
> (define a '1)
> (+ a 1)
2
The above code is scheme, but it seems to be roughly the same in Common Lisp and Clojure as well. Is there any difference between 1 and quoted 1?
...
I am running MIT Scheme on Snow Leopard. The problem is: when I type single quote (') I get the acute accent character (´) instead. That makes it almost impossible to program in Scheme, because I can't quote symbols, lists etc.
I got MIT Scheme from Mac Ports, but the same thing happens on MIT Scheme downloaded from http://ftp.gnu.org/g...
What's the exact way to properly quote a single command line argument?
For example, I have some random text in a variable $X. I need to quote it in a way so that if I call
system("program.exe " + $X_QUOTED);
then argv[1] of my program.exe has to match original unquoted $X
imagine I have this program.exe:
int main(const char **argv, ...
- (IBAction) charlieImputText:(id)sender {
NSAppleScript *keystrokeReturn = [[NSAppleScript alloc] initWithSource:@"tell application \"System Events\" to keystroke return"];
[keystrokeReturn executeAndReturnError:nil];
[progressBarText startAnimation:self];
charlieImputSelf = [sender stringValue];
NSAppleScript *sendCharlieImput = [[...
hello, i'm making my own bbcode parser, and i've a problem when i try to do the recursive quote.
this is my code :
function forumBBCode($str){
$format_search=array(
'#\[quote=(.*?)\](.*?)\[/quote\]#is'
);
$format_replace=array(
'<blockquote class="quotearea"><i><a class="lblackbu" href="./index.php?status=userview&userv=$1">$1</a> wr...
Hi everyone,
I decided that my client would be overwhelmed by a lot of bells and whistles in a message board like phpBB, so I started from scratch. So far everything has been working really well, apart from a little issue with quotes in replies.
When the user clicks Quote, they see this (using tinyMCE as my WYSIWYG):
This is a blockq...
I want to know how to identify what the character inserted on a div editable...
I want to see if the user type a single or double quotation mark, and give a specific class to this quote to the text after the quote...
I think that is a onkey property or return... i don't know...
Anyone has a tip ?
...
I have to create a lexical and syntax analyzer for a c-like language. In this language we define as comment "everything that exists after the symbol % until the end of line". Are the following declarations correct?
Flex
...
[%][^\n]*[\n] { return T_COMMENT; }
[\n] { return T_NEWLINE; }
Bison
...
comment:com text newline;
text: |name...
Hi all,
I got question about quote. There many few quote using documentation:
'
`
‘
’
"
“
”
How to say or tell it in word?.
There few symbol quote not include in keyboard, (“, ‘, ’, ”), how could I using symbol without copy-paste from other document.
As programmer view, it really matter write quote to make different from one to ...
I have a file containing my clients articles that weekly needs to be uploaded to a remote UNIX server via FTP and a remote command is used to read the articles into their system (an agency that keeps track of EAN-codes). The people running the remote server gave my client a batch-file to run in order to upload this article file to the se...
When i post something with " to a php page, it gets escaped with \" ; . To get rid of this in the php file, i've tried str_ireplace, htmlspecialchars_decode and stripslashes, nothing is working. Is there a way i can strip it out after it's returned to the js file?
...