lexical-analysis
Java KeyEvent & Syntax Highlighting
I\'m writing a syntax highlighting text editor in Java and I\'ve run into a bit of a problem as to what I should do as opposed to what I want to do. Basically the KeyEvent class provides me with a bit[详细]
2023-01-24 17:32 分类:问答C Lexical analyzer in python
I\'m creating a C Lexical analyzer using python as part of developing a parser.Here in my code i have written some methods for identifying keywords,numbers,operators etc. No error is shown after compi[详细]
2023-01-21 16:49 分类:问答Matching lexeme variants with Antlr3
I\'m trying to match measurements in English input text, using Antlr 3.2 and Java1.6. I\'ve got lexical rules like the following:[详细]
2023-01-18 04:14 分类:问答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 分类:问答How to use JRuby's org.jruby.lexer.yacc.RubyYaccLexer
I\'m using ripper to doing ruby-code lexing in mri-1.9.*, I would like to do the same thing in JRuby, I noticed there is this org.jruby.lexer.yacc.RubyYaccLexer used in org.jruby.parser.DefaultRubyPar[详细]
2023-01-14 07:32 分类:问答How to detect vulnerable/personal information in CVs programmatically (by means of syntax analysis/parsing etc...)
To make matter more specific: How to detect people names (seems like simple case of named entity extraction?)[详细]
2023-01-14 05:10 分类:问答C/C++/C#/VB based Lexical Analyzers
During the Compiler Design Lab hours, I\'m using JLex as the Lexical Analyzer Generator, which produces a Java program from a lexical specification.[详细]
2023-01-14 02:30 分类:问答Return multiple tokens in ocamllex
Is there any way to return multiple tokens in OCamlLe开发者_如何学Cx? I\'m trying to write a lexer and parser for an indentation based language, and I would like my lexer to return multiple DEDENT to[详细]
2023-01-10 22:49 分类:问答If you are forced to simplify C# looping keywords, choose only one you want to preserve [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-01-09 08:10 分类:问答Question on lexical analysis
I am reading the dragon book. Quoting the text from the book (3.1.4 Lexical errors, Pno 114) It is hard for a lexical analyzer to[详细]
2023-01-06 21:08 分类:问答