Top "Syntax" questions

Syntax refers to the actual language elements and symbols themselves.

syntax error: unexpected token <

I've tried many things and there's no way, always appears this error I tried to use only one option to …

javascript jquery ajax syntax token
How do I abort the execution of a Python script?

I have a simple Python script that I want to stop executing if a condition is met. For example: done = …

python syntax scripting exit
How to concatenate strings in twig

Anyone knows how to concatenate strings in twig? I want to do something like: {{ concat('http://', app.request.host) }}

syntax twig string-concatenation templating
What does the "at" (@) symbol do in Python?

I'm looking at some Python code which used the @ symbol, but I have no idea what it does. I also …

python syntax python-decorators
jquery variable syntax

I'm learning jQuery by trying to understand other people's code. I ran into this: jQuery.fn.myFunc = function(options, callback) { //…

jquery syntax
What does "while True" mean in Python?

def play_game(word_list): hand = deal_hand(HAND_SIZE) # random init while True: cmd = raw_input('Enter n to …

python syntax
Command not found error in Bash variable assignment

I have this script called test.sh: #!/bin/bash STR = "Hello World" echo $STR when I run sh test.sh …

bash shell syntax sh variable-assignment
How can I fix MySQL error #1064?

When issuing a command to MySQL, I'm getting error #1064 "syntax error". What does it mean? How can I fix it?

mysql parsing syntax syntax-error mysql-error-1064
What does the question mark and the colon (?: ternary operator) mean in objective-c?

What does this line of code mean? label.frame = (inPseudoEditMode) ? kLabelIndentedRect : kLabelRect; The ? and : confuse me.

objective-c c syntax operators conditional-operator
How to replace multiple patterns at once with sed?

Suppose I have 'abbc' string and I want to replace: ab -> bc bc -> ab If I …

replace syntax sed