Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
define-syntax
- Page 1
Re: Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Days Ago
by aishamushtaq
very helpful
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
… 'gpt-4', temperature = 0.5 ) ``` Next, we
define
a `get_db_response` function that accepts the database object and the…of the `SQLDatabase` class. For PostgreSQL, the
syntax
of the connection string is as follows: ``` f…thing that changes is the connection string, whose
syntax
should be as follows: ``` 'mysql+mysqlconnector…
[Scheme, (define-syntax)] problem with a macro expanding to unquoted values
Programming
Software Development
9 Years Ago
by Schol-R-LEA
…something of a novice with (
define
-
syntax
), and have struggled to get …it in Ypsilon 0.9.6-update3. (
define
-
syntax
define
-field-pattern (lambda (x) (let*… (width ?size) (?pattern-0 ?pattern-1 ...)) (
syntax
(
define
?name (append (list (cons 'width ?size)) (…
Re: [Scheme, (define-syntax)] problem with a macro expanding to unquoted values
Programming
Software Development
9 Years Ago
by Schol-R-LEA
…final version is: (
define
-
syntax
define
-field-pattern (lambda (x) (
syntax
-case x (width …default =>) ((_ name (width w) ((p-0 ... => value) ... (default => value-n))) #'(
define
…width w) ((p-0 ... => value) ...)) #'(
define
name `((width . w) (((p-0 ...) . value)…
Re: Scheme using define-syntax
Programming
Software Development
11 Years Ago
by sepp2k
…get anything printed to the screen, no matter how you
define
your `foreach` macro. You should get rid of …'t bother reading the links that rubberman posted. The `
define
-
syntax
` facility of Scheme has absolutely nothing in common with the… a red herring. As far as tutorials about `
define
-
syntax
` go, [this one](http://www.willdonnelly.net/blog/scheme…
Scheme using define-syntax
Programming
Software Development
11 Years Ago
by rarment
…'m learning scheme and having a hard time with the
define
-
syntax
part. The tutorials online that I have found are not… on the right track or not. What I have is: (
define
-
syntax
foreach (
syntax
-rules () [(foreach x : y) (display y)] [(foreach x : y…
define() syntax issue...?
Programming
Web Development
15 Years Ago
by kssi89
… behind a constant definition but I have been trying to
define
a default location for file uploads: [CODE] <?php… //
Define
the upload path
define
('UPLOADPATH', 'C:\wamp\www\web\images_files'); [/CODE] Every time…
Re: [Scheme, (define-syntax)] problem with a macro expanding to unquoted values
Programming
Software Development
9 Years Ago
by Schol-R-LEA
The test code is: (
define
-field-pattern foo (width 3) ((bar => 2))) (display foo) (…;
syntax
later-patterns> ())) (#<
syntax
expand-pattern> (#<
syntax
syntax
> 3) #<
syntax
pattern>) (#<
syntax
if> (#<
syntax
null?> #<
syntax
…
Re: define() syntax issue...?
Programming
Web Development
15 Years Ago
by rm_daniweb
do not include C:\ ...........follow the root of your website. root????\web\images_files\
Re: define() syntax issue...?
Programming
Web Development
15 Years Ago
by somedude3488
That is only a notice, not an error. Change your error reporting.
Re: define() syntax issue...?
Programming
Web Development
15 Years Ago
by pritaeas
Show line 31. It could be a typo.
Re: define() syntax issue...?
Programming
Web Development
15 Years Ago
by rm_daniweb
or try to change all the "\" by "/";
Re: [Scheme, (define-syntax)] problem with a macro expanding to unquoted values
Programming
Software Development
9 Years Ago
by Hiroshe
I'm more of a Racket programmer, and I don't usually use macros. I'll try to help though. Is this R5RS? Edit: Nevermind. R6RS.
Re: [Scheme, (define-syntax)] problem with a macro expanding to unquoted values
Programming
Software Development
9 Years Ago
by Hiroshe
It does look line your default case should be quoting everything. What was the input for the expected output? What was the actual output?
Re: Scheme using define-syntax
Programming
Software Development
11 Years Ago
by rubberman
Scheme is a dialect of Lisp, so you might want to look for Lisp/CommonLisp tutorials on the web. I haven't used it for many, many years. The last time was probably when I needed to tweak some Emacs macros. The GNU project has a Common Lisp implementation (Gnu Common Lisp) which is widely supported. Here are some links for Lisp books and tutorials …
Re: syntax error - unexpected T_variable
Programming
Web Development
11 Years Ago
by salii
… and theme developers use WP_DEBUG * in their development environments. */
define
('WP_DEBUG', false); /* That's all, stop editing! Happy blogging…Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') )
define
('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files…
syntax error before "else"
Programming
Software Development
14 Years Ago
by notsogood
… before "else" [/I] My source code: [CODE=
syntax
]#include <stdio.h> #include <stdlib.h> #…; #
define
MAX_STUD_NUM 9 #
define
MAX_STUD_LASTNAM 20 #
define
MAX_STUD_FIRSTNAM 20 #
define
MAX_STUD_MIDNAM 20 #
define
MAX_INSTRUCT_ID 5 #
define
MAX_INSTRUCT_NAME 50 #
define
OK 0 #
define
CANCEL -2 #
define
TRUE 1 #
define
FALSE 0 #
define
…
Re: #define inside enum.
Programming
Software Development
13 Years Ago
by amala.123
… 0; } c.h file is: #
define
RED 10 #
define
GREEN 20 #
define
BLUE 30 So from my understanding, including …, PINK }; But in the example of memory pools #
define
LWIP_MEMPOOL(name,num,size,desc) MEMP_##name, typedef enum … of the #
define
and the contents of memp_std.h has to result in valid
syntax
for defining an…
Re: Syntax error
Programming
Web Development
10 Years Ago
by jessie.wauters.1
… of WordPress prior to 3.4.
define
( 'HEADER_TEXTCOLOR', $custom_header_support['default-text-color'] );
define
( 'HEADER_IMAGE', '' );
define
( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] );
define
( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] ); add_custom_image_header( $custom_header_support…
Define jmptable array in GAS asm, GAS AT&T Assembly
Programming
Software Development
15 Years Ago
by cvfirefox
In Intel
syntax
: jmptable DD 755, 32, 0.0000036, 672 How to
define
this jmptable array GAS assembly AT&T
syntax
?
Syntax error in "array and 2D array"
Programming
Software Development
14 Years Ago
by GooeyG
…quot; and I can't get get rid of a
syntax
error in the header file. I'm using a 2…-D array for my grid. The error is: error C2059:
syntax
error : '{' The error seems really simple, but for some … can't get rid of the
syntax
error. Thanks for the help. [CODE]#ifndef BATTLEGRID_H #
define
BATTLEGRID_H #include <iostream> using…
Re: #define directive problem
Programming
Software Development
11 Years Ago
by deceptikon
> what is problem with these expressions ? They're
syntax
errors. Wrapping a statement in parentheses makes it an expression, …;);`, and this is illegal. That's just the way the
syntax
of C works. If the inner semicolon weren't there…
Syntax Error although there is none
Programming
Software Development
14 Years Ago
by IFEEL
… it won't. GetUserData() returns a void* [code] #ifndef BLABLA_H #
define
BLABLA_H #include "GameEntity.h" //class declaration left out…;m_name == "player") { } #endif; error C2061:
syntax
error : identifier 'GameEntity' error C2143:
syntax
error : missing ';' before '{' [/code] Error occurs because of…
Re: #define inside enum.
Programming
Software Development
13 Years Ago
by Banfa
That is not the comma operator. That is the comma
syntax
element required in-between enum values when defining an enum. Like I said the combination of the #
define
and the contents of memp_std.h has to result in valid
syntax
for defining an enum.
Syntax error
Programming
Web Development
12 Years Ago
by scottymex
… MESSAGE Error: 1064:- You have an error in your SQL
syntax
. Check the manual that corresponds to your MySQL server version… the right
syntax
to use near 'VALUES ('', '', '', '', '', '8am-10am ', '', '', '', '', '', '' THE SIDE SCRIPT [CODE]<?php ob_start(); session_start(); // include section
define
('DIR', '.'); include…
Syntax Analyser and General Java Help
Programming
Software Development
19 Years Ago
by MrScruff
… on some coursework from which i have to write a
syntax
analyser to parse a grammer. Unfortunatly I am finding it….getNextToken() ; System.out.println(t) ; } while (t.symbol != Token.eofSymbol) ; //
define
a set of all terminals/non-terminals which could be…
Syntax Error
Programming
Software Development
15 Years Ago
by buddha527
… build it and I receive this following error: error C2059:
syntax
error : 'return'. I am not sure why I am getting… could have missed one though. [CODE] HEADER.H #ifndef WORKER_H #
define
WORKER_H #include <cstdlib> #include <iostream> #include…
Re: Syntax Error although there is none
Programming
Software Development
14 Years Ago
by IFEEL
… with all virtual functions which I overwrite. [code] #ifndef CONTACT_LISTENER_H #
define
CONTACT_LISTENER_H #include "GameEntity.h" #include <Windows.h…
Syntax Error Help
Programming
Software Development
13 Years Ago
by COL_Milkshake
… can't quite figure out. The first is error C2143:
syntax
error : missing ';' before 'using' line 2 and the second is… line 8 [CODE]#include <iostream> using namespace std; #
define
MAX_SIZE 1000 //Heap Class class Heap { public: Heap() // constructor { size…
Re: Syntax error
Programming
Web Development
12 Years Ago
by scottymex
… the same error message. <?php ob_start(); session_start(); // include section
define
('DIR', '.'); include(DIR."/includes/phpclass.inc.php"); include…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC