lexical
Syntax Highlighting / Lexical analysis Algorithms
What is the general algorithm used by a syntax highlighter? I have implemented a simple approach using alternation in regex:[详细]
2023-03-21 19:19 分类:问答Tokenization, Lexical Analysis, BNF, Context Free Grammar [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it'开发者_如何学Cs on-topic for Stack Overflow.[详细]
2023-03-17 04:30 分类:问答Lexical error: Encountered: "" (0), after : ""
I needed to start dealing with foreign characters, and in doing so, I think I royally screwed up a file\'s encoding.[详细]
2023-03-16 00:19 分类:问答Compiling a (flex/bison) parser with NDK
UPDATE I know now that parser.h should be generated by the make system from parser.y. The Android.mk file even has an entry like this:[详细]
2023-02-17 17:34 分类:问答Need an end of lexical scope action which can die normally
I need the ability to add actions to the end of a lexical block where the action might die.And I need the exception to be thrown normally and be able to be caught normally.[详细]
2023-02-02 10:45 分类:问答Writing Compilers, Lexical Analysis?
I\'m completely new to writing compilers. So I am currently starting the project (coded in Java), and before coding, I would like to know more about the lexical analysis part. I have researched on the[详细]
2023-01-29 23:35 分类:问答How to combine Regexp and keywords in Scala parser combinators
I\'ve seen two approaches to building parsers in Scala. The first is to extends from RegexParsers and define your won lexical patterns.The issue I see with this is that I don\'t really understand how[详细]
2023-01-17 07:56 分类:问答Words in a db - search via lexical dictionary (semantic similarity)
I\'m implementing a small dictionary database where I\'d like to do searches based on lexical/semantic similarity between them..[详细]
2023-01-10 11:57 分类:问答The good, the bad, and the ugly of lexical $_ in Perl 5.10+
Starting in Perl 5.10, it is now possible to lexically scope the context variable $_, either explicitly as my $_; or in a given / when construct.[详细]
2023-01-09 22:00 分类:问答Why can't I use a Perl variable's value to access a lexical variable name?
Why does this print 42: $answer = 42; $variable = \"answer\"; 开发者_运维知识库 print ${$variable} . \"\\n\";[详细]
2022-12-21 02:48 分类:问答