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
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
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:
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
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
To make matter more specific: How to detect people names (seems like simple case of named entity extraction?)
During the Compiler Design Lab hours, I\'m using JLex as the Lexical Analyzer Generator, which produces a Java program from a lexical specification.
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
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
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