» Home » syntax » Page 1
JSON array syntax. Are the curly brackets (object syntax) strictly necessary?
by dmxlite in Web Design

Is it possible for a json string to include only square brackets ? For ex. :


I get unexpected character error from parsing that string ... (long time since i worked on this script and i think it worked before ) .

Parsing the json string will allways make an object from the string ? or is it possible to parse

Code Syntax Highlighting in Delphi 6 (to highlight syntax and ifdef blocks)
by znotdead in Computers

Delphi 6 is pretty old, I know. Unfortunately there are reasons why I can't upgrade which I don't want to get into here.

My problem is that it's hard to read code. I have the Castalia plugin which helps a bit (parenthesis matching, shows blocks of if, else, end) but it doesn't highlight the syntax like other IDEs do (variables, constants, procedures, etc.) in different colors.

ORA-00905: Trouble converting Mysql/MMSQL syntax to oracle syntax
by dougbeal in Databases

Hi guys i'm having trouble running the below code on an Oracle DB not too sure why - getting ORA-905 error - missing keyword

This works fine on MSSQL and MYSQL.

Any indication as to how to fix will be much appreciated.


SELECT product.productId, product.version
FROM product

linq-to-sql joins with multiple from clauses syntax vs. traditional join syntax
by MadViking in Programming Languages

What the difference between writing a join using 2 from clauses and a where like this:

var SomeQuery = from a in MyDC.Table1
from b in MyDC.Table2
where a.SomeCol1 == SomeParameter && a.SomeCol2 === b.SomeCol1

and writing a join using the join operator.

This i

Scheme macro expansion: Nesting let-syntax inside define-syntax
by Jesper in Programming Languages

I wish to expand

(foo x (f n) (f n) (arbitrary) (f n) ...)


(begin (x 'f n) (x 'f n) (arbitrary) (x 'f n) ...)

my attempt is:

(define-syntax foo
(syntax-rules ()
((_ l a ...)
(let-syntax ((f (syntax-rules ()
((_ n) (l (quote f) n)))))

Python syntax reasoning (why not fall back for . the way django template syntax does?)
by Jimmy G. in Coding

My karate instructor is fond of saying, "a block is a lock is a throw is a blow." What he means is this: When we come to a technique in a form, although it might seem to look like a block, a little creativity and examination shows that it can also be seen as some kind of joint lock, or some kind of throw, or some kind of blow.

So it is with the way the django template syntax uses

error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10,10' at line 1
by NoCreativity in Programming Languages

I have a table that lists all employees in the database but when I deleted all of them using $query = mysql_query("DELETE FROM $this->emp_tbl");

I got this error:

Sucessfully deleted!Database Failed: You have an error in your SQL
syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near '-10,10

Linq query syntax to method syntax when using multiple joins to introduce dynamic restrictions
by pmaiorana in Programming Languages

I'm trying to translate a linq query using query keywords to the method syntax.
My ultimate goal is to be able to apply additonnal restrictions at runtime each time you see a Where clause in the query. I have a total of 14 different parameters to be applied. Some are mutually exclusive, other are inclusive.

Here is the starting query :

query = from p in context.P

How do I create my own syntax / rewrite existing syntax in ruby?
by comphollic in Programming Languages

Here is, for example, a standard if semantic:

if (condition)
do stuff

What I want to be able to do is to re-write if in such a way that, if an exception is thrown, I can do some error handling.

Does ruby have a way to re-define pre-existing syntax? If so, how?

Lets say in an if co

Is Groovy syntax an exact superset of Java syntax?
by DigDog in Java

Being a Java programmer, I don't really have a Groovy background, but I use Groovy a lot lately to extend Maven (using GMaven). So far, I could use all the Java code I need in Groovy with the added Groovy sugar (metaclass methods, more operators, closures). My knowledge of Groovy is far from complete, but I like it, especially for Scripting purposes (I'm a bit careful about using a non-static t


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .