lexical

C++ parser generator [closed]

 ̄綄美尐妖づ 提交于 2019-11-28 05:55:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm writing my own scripting language and I need a software tool which generates C++ code for parsing my language. I need a lexical analyzer and a parser generator which generates C++ code. It would be nice for me to be able also to generate a Visual C++ 2010 project. Suggestions? 回答1: Try with Flex and Bison.

Making a lexical Analyzer

白昼怎懂夜的黑 提交于 2019-11-27 09:26:23
问题 I'm working with a Lexical Analyzer program right now and I'm using Java. I've been researching for answers on this problem but until now I failed to find any. Here's my problem: Input: System.out.println ("Hello World"); Desired Output: Lexeme----------------------Token System [Key_Word] . [Object_Accessor] out [Key_Word] . [Object_Accessor] println [Key_Word] ( [left_Parenthesis] "Hello World" [String_Literal] ) [right_Parenthesis] ; [statement_separator] I'm still a beginner so I hope you