Syntax checking is the verification that a program's source code is technically correct according to the rules of that programming language.
Questions tagged [syntax-checking]
110 questions
1
vote
1 answer
ace editor syntax validation html+javascript
I'm using Ace Editor, and I'm trying to figure out how to get it to live syntax check the HTML markup AND JavaScript code in the editor.
If I set "ace/mode/html" only HTML syntax is checked, so in the following code
…

Erich
- 15
- 4
1
vote
2 answers
Syntax Control & Debugging
How can I make syntax control and debugging on makefile?
I used g++ compiler. We can assume that following code our sample makefile.Thanks for your advice.
all: sample1
sample1: deneme.o hello.o
g++ deneme.o hello.o -o sample1
deneme.o:…

snc
- 21
- 3
1
vote
2 answers
PHP syntax check on .html files in NetBeans
I am using NetBeans IDE 8.0.1 for my PHP development.
I like the syntax check feature in netbeans. But the problem that I have is that it only works with files that have .php extension .
I am using a lot of php code in files with .html extension,…

Marko Durasic
- 48
- 10
1
vote
1 answer
how do i check for trail whitespace on python?
I am trying to write a function to check for trail whitespace, but not to remove the spaces. but i have no idea of how to do that. can somebody teach me?
thank you

Joyce Lam
- 33
- 1
- 4
1
vote
0 answers
Can I make Qt Creator not start compiling if there is an error in the syntax?
Qt Creator can locate errors in C++ code through some syntax checking. However it does not stop me from pressing the compile button. Is there any way to configure it to not start compiling if I have an error in my code.
For example it gives me a…

Reed Richards
- 4,178
- 8
- 41
- 55
1
vote
1 answer
Turn off error checking in MySQL Workbench
Is there a way to turn off syntax / error checking while writing queries in MySQL Workbench? It lags almost constantly as I'm typing (presumably to check syntax, as it informs me of errors), and gets even worse if I'm connected to a remote…

Tom Murray
- 99
- 10
1
vote
2 answers
GCC syntax check ensure NULL passed as last parameter in function call with variable arguments
I want to do something similar to how, in GCC, you can do syntax checking on printf-style calls (to make sure that the argument list is actually correct for the call).
I have some functions that take a variable number of parameters. Rather than…

Brad
- 11,262
- 8
- 55
- 74
1
vote
1 answer
Find whether a partiular file is valid PHP file
I want to find out whether a particular file is valid PHP file or not?
php -l filename only finds our whether it have syntactical errors or not, it is lint.
But I also want to find out, that on execution, it will run without error or not?
I am…

Jatin Dhoot
- 4,294
- 9
- 39
- 59
1
vote
1 answer
Syntastic working in Vim but not in gVim
I have Vim (7.3) installed on a Debian (testing), i recently switched to using gVim more than command line Vim (for the colorschemes and undercurl of misspelled words).
Now I coded some Haskell and miss the nice Syntastic errors. And when I type…

epsilonhalbe
- 15,637
- 5
- 46
- 74
1
vote
3 answers
Function for detecting quotes in Scheme code
I am trying to write a function that can check whether or not some input is a quotation for a syntax checker.
I have the following code:
(define is-quote-expression?
(lambda (v)
(equal? (car v) 'quote)
(is-quotation? (cdr v)))))
(define…
user353955
0
votes
1 answer
Is there a better way to check Python code for a syntax errors without external modules?
As the title says, is there a better way to check a Python source for syntax errors without the use of external modules?
I mean, in sense of a more Pythonic style or a more performant way.
def CheckSyntax(source, raw = False):
lines =…

Niklas R
- 16,299
- 28
- 108
- 203
0
votes
0 answers
Any known way to check assembly files for syntax errors
Im searching for an way to check if any syntax errors are present in a assembly file for arm. My first try were to query all possible instructions of the arch x.
My next attempt was to look for any known syntax checker as a thought that inventing…

Basur
- 339
- 1
- 14
0
votes
1 answer
Determine the positivenes or negativeness of a generic statement
I want to know if a twit is positive or negative.
For example:
thesis: jonas brothers eat charcoal
"Jonas Brothers are going to eat charcoal" >>> Positive
"Jonas Brothers have nothing to do with charcoal" >>> Negative
thesis: melmac is destroyed…

AlfredoVR
- 4,069
- 3
- 25
- 33
0
votes
1 answer
Recursive Descent Parsing in pascal syntax parser
I have got one question about writing recursive descent parsing for checking pascal grammar.
I have got this code for example:
a := c ;
I see that a,c is variables. := and ; - is terminals. This expression I can check. But if I have got smth like…

azh
- 13
- 1
- 1
- 4
0
votes
1 answer
XML Editor with syntax check in JavaFX
I'm looking for a way to build a XML editor with JavaFX, which checks the syntax and displays errors and also has syntax highlighting. Does anyone has an idea how to do that? Are there already components which I can use?
Thanks!

dblum
- 53
- 6