Question about input of scanners in flex

  • Thread starter Thread starter SuperSusanoo
  • Start date Start date
  • Tags Tags
    Input
AI Thread Summary
CHARCON represents a set of valid characters that can be included in a string, defined using regular expressions to specify allowed characters and escape sequences. The unusual characters in CHARCON are necessary to accommodate various escape sequences and ensure proper string processing. BAD_CHARCON includes characters that are considered invalid or problematic for the intended string format, which could lead to parsing errors. Understanding these definitions requires context from the specific programming environment in which they are used. Clarifying these concepts may benefit from further exploration in a dedicated programming forum.
SuperSusanoo
Messages
7
Reaction score
1

Homework Statement


I have the following set of definitions

CHARCON ('([^\\'\n]|\\[\\'"0nt])')
BAD_CHARCON ('([^\\'\n]|\\[\\'"0nt]|\\[^\\'"0nt])?[']?[\n]?)

My questions are what is a charcon?, why does it have such weird characters and why are the characters of BAD_STRINGCON bad characters?

Homework Equations

The Attempt at a Solution

 
Physics news on Phys.org
You need to consider these in the context of the program where they are found if you hope to make sense out of them. These expressions are composed of what are known as regular expressions.

In the absence of context, I can imagine that CHARCON might be those CHARACTERS which are allowed to be CONTAINED within whatever it is that the routine will process. Google might be able to help you here.

Perhaps this thread would be a better fit in our Programming & Computer Science forum?
 

Similar threads

Replies
1
Views
2K
Replies
23
Views
4K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
7
Views
5K
Replies
1
Views
1K
Back
Top