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
2
votes
1 answer
Javascript syntax checking within a JSP file not working
I'm using eclipse 3.5 with WTP 3.0 to develop a web app using JSP and Javascript etc. Sometimes I need to embed Javascript code directly into a JSP file eg. to use a string out of the resource bundle message. My problem is, that I can not find a way…

joo
- 170
- 1
- 9
2
votes
0 answers
How to check open and closing parenthesis sets in MIT-Scheme for Meep
Scheme language is used to build control files for the program, Meep. Almost all my Meep control file errors result from mismatched parenthesis which Meep recognizes after the control file is completely processed, that is, at the end of the control…

Steve Russell
- 57
- 1
- 6
2
votes
1 answer
pylint does not work in emacs
I have emacs24 (installed by homebrew), flycheck (installed by MELPA) and pylint (installed by pip) on my mac, and I have the following code
(add-hook 'after-init-hook #'global-flycheck-mode)
in my .emacs file. However there's still no syntax…

LWZ
- 11,670
- 22
- 61
- 79
2
votes
2 answers
perl syntax check without loading c library
I would like to check syntax of my perl module (as well as for imports), but I don't want to check for dynamic loaded c libraries.
If I do:
perl -c path_to_module
I get:
Can't locate loadable object for module B::Hooks::OP::Check in @INC
because…

Slaven Tomac
- 1,552
- 2
- 26
- 38
2
votes
3 answers
Removing null warnings in Splint
I have been trying out Splint with a C program I recently wrote and trying to understand and remove the warnings it gives. One I understand but can't understand how to remove it comes from the following code snippet:
static MyType_t *findById(const…

Makis
- 12,468
- 10
- 62
- 71
2
votes
2 answers
How to check gitolite configuration file syntax before using it?
I would like to check the syntax of the gitolite configuration file conf/gitolite.conf before using (pushing) it. Is there a way to achieve that?

Totor
- 1,148
- 1
- 10
- 21
2
votes
1 answer
Is there any shell script and/or Makefile static code analyser?
Or how can I ensure reliability of my Makefiles/scripts?
Update: by shell scripts I mean sh dialect (bash, zsh, whatever), by Makefiles I mean GNU make. I know, they are different beasts, but they have many in common.
P. S. Yeah, I know, static code…

evgeniuz
- 2,599
- 5
- 30
- 36
1
vote
3 answers
plsql : New function inside an existing package compilation and syntax check
How do I compile a new function created inside a package in plsql, to see syntactical error and so on

Anshul Lavaniya
- 11
- 2
1
vote
1 answer
Is there a way to check correct syntax in nested files in VCS, let them know who is parent? Like in Perl called with require, or with eval?
I started to work with Visual Studio Code, and it's super cool with syntax correction warnings. I used to work 20 years under Linux shell in Vim.
But now I can see too much error related to global variables, like Global symbol "%contents" requires…

Petr Vyhnálek
- 25
- 4
1
vote
1 answer
Does the generic type not apply constraint inside the body of a function?
I'm sure if this is possible, I'm beginner in TypeScript but what I'm trying to do is:
I have the following type;
type Special = {
[Prop in keyof C]: C[Prop] extends Function | string ? C[Prop] : never;
}
There can only be properties of type…

Grizzly
- 371
- 2
- 13
1
vote
1 answer
Code to count times to get all heads or all tails is returning only times to get heads
I am pretty happy to say I think I have my first coin flip problem running. I am counting how many times it takes to get all heads or all tails in a trial of 7 flips. In theory it should take around 64 times to get either all heads or all…

CPTxShamrock
- 99
- 8
1
vote
1 answer
Python syntax check in ace editor
What I am trying to develop is a web-environment app which will let user write and syntax check his own python code. To the moment, I have embedded ACE editor to my app using the python mode. My problem is that ace does not include a javascript lib…

N.Papadopoulos
- 11
- 3
1
vote
0 answers
clang and gcc linters checks syntax wrong
I use ALE vim plugin which lints with clang and gcc by default. If I write program on C and define variable of ssize_t type ALE will marks it as mistake with message "unknown type name 'ssize_t'; did you mean 'size_t'?", regardless of ssize_t is…

Kirill Bugaev
- 370
- 3
- 13
1
vote
1 answer
Does any of the currently available editors support Ruby's hash colon?
In Ruby 1.9 hash = {:one => 1, :two => 2, :three => 3} is now written as:
hash = {
one: 1,
two: 2,
three: 3
}
However neither the current version of TextMate (1.5.10 (1623)) nor the current version of Redcar (0.10) recognize this as…

romeroabelleira
- 468
- 7
- 20
1
vote
1 answer
Does Visual studio 2017 have syntax checking for C?
I would like to get syntax checking for my .c in Visual Studio 2017, but it seems I only get it if my source file is named source.cpp, not source.c
Is it possible to turn it on?
Thanks!
user8678779