Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
0 answers

Why do the Autofac has such a name?

Why do the Autofac has such a name? I mean does it mean something like auto facility or something else? I know well what is Autofac, how and for what it is used. Here I am interested in solely the framework`s name.
qqqqqqq
  • 1,831
  • 1
  • 18
  • 48
0
votes
1 answer

XCode 4.0.2 and warnings not going away!

I upgraded from xcode 4.0 to 4.0.2 today (not sure why, but everything i read pretty much says that "i have to"... why is this?). Anyway, after this upgrade I noticed a warning due to "static" (class) method call. I have a class that has 2 methods…
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
0
votes
1 answer

Is it possible to switch to another rule

My understanding is that in Lex/Bison, the lexical analysis is done by lex, the syntaxical by the rules of Bison, and the semantic one by the actions of Bison. Is it then possible to go back from the semantic analysis, i.e. the actions, to the…
Ezriel_S
  • 248
  • 3
  • 11
0
votes
1 answer

BERT Model Evaluation Measure in terms of Syntax Correctness and Semantic Coherence

For example I have an original sentence. The word barking corresponds to the word that is missing. Original Sentence : The dog is barking. Incomplete Sentence : The dog is ___________. For example, using the BERT model, it predicts the word crying…
alyssaeliyah
  • 2,214
  • 6
  • 33
  • 80
0
votes
1 answer
0
votes
1 answer

TextRazor Custom Dicitionary - AttributeError

From: https://www.textrazor.com/docs/python#Dictionary I implemented following code: client = textrazor.TextRazor("API_key", extractors=["words", "phrases", "topics", "relations","entities"]) client.set_classifiers(["textrazor_iab"]) manager =…
aze45sq6d
  • 876
  • 3
  • 11
  • 26
0
votes
1 answer

z component of SV_POSITION in pixel shader

Hi i am newbie in directx and struggling with SV_POSITION in pixel shader. So my pixel shader get input from SV_POSITION input(float4) as normal and i just guess that the z component of this input will give me the depth value of the pixel that this…
KIM CHANGJUN
  • 99
  • 11
0
votes
2 answers

How to install Jena SemanticWeb Framework in Play Framework

I put jena jar files in the lib folder and see the message: A JPA error occurred (Cannot start a JPA manager without a properly configured database): No datasource configured what am I doing wrong? I found the answer. This was a problem in…
Alex
  • 1
  • 1
0
votes
1 answer

Can't understand this piece of dot net code

Can someone tell me what this code does? Can't figure out what is it looking for. Every thing I try InvalidOperationException will be raised. + A_0 {3/17/2012 12:26:40 PM} object {System.DateTime/*0x0200007D*/} + A_1 {Name = "XXXXXXX"…
shetal
  • 1
  • 2
0
votes
1 answer

bundler gem pessimistic semantic version string ~>1.7.15

I am noticing some unexpected behavior in ruby semantic version strings, for pessimistic operators. I think ~> 1.7.15 should satisfy both 1.7.20 and 1.7.2. But I tested with Gem::Requirement.satifsfied_by? and it says first one is true but the…
namesake22
  • 345
  • 2
  • 12
0
votes
1 answer

Is it okay to put tag inside tags?

I'm developing a UI for a Japanese website where I have to use a Japanese word together with its English equivalent. I wonder if it's okay to use tag inside any heading tags

-

. I'm using the W3C Validation extension in VS Code and it…
overjoied
  • 103
  • 1
  • 6
0
votes
1 answer

How do we detect semantic errors of software application?

"How do we detect semantic errors of a software application? Is it possible to eliminate all possible errors of a software application?"
Sakun Chamikara
  • 41
  • 1
  • 1
  • 4
0
votes
0 answers

Is there a mathamatical proof that sematic error detection system design is imposible to design?

In the video: https://www.youtube.com/watch?v=k6U-i4gXkLM&t=2638s the professor (at about 43:50) says that "you would love to have a system that spots your semantic errors, but its not possible". Is there a mathematical proof for that?
0
votes
1 answer

What is a value called, that signals that nothing has happened?

I'm at a loss for what to call that or even what to search for. What I'm looking for is something like this: value = None if something_is_true: value = 123 if value is not None: send(value) What is the use of None called in this instance?…
Minix
  • 247
  • 4
  • 17
0
votes
1 answer

semantic phase of c compiler

if write 1=a in the sample c program, it doesnt detect it as an error. How do i solve this problem? Also how do i do global and local scope of variables. Thanks if anyone can solve it clexer.lex source code D [0-9] L [a-zA-Z_] H …
koder
  • 325
  • 3
  • 13