yacc
yacc/lex or hand-coding?
I am working on new programming language, but I was always puzzled by the fact that everyone is using yaxx/lex to parse the code, but I am not.[详细]
2023-01-13 06:45 分类:问答Calling lex/yacc from a separate program
I\'ve been reading up on lex/yacc. The books and examples are not hard to follow. In fact, the whole concept is clear as a bell. With one exception. Lex/yacc seem to generate standalone programs. What[详细]
2023-01-12 17:21 分类:问答Basic problem with yacc/lex
I have some problems with a very simple yacc/lex program. I have maybe forgotten some basic steps (it\'s been a long time since I\'ve used these tools).[详细]
2023-01-08 20:53 分类:问答Recovering error tokens in parsing (Lemon)
I\'m using Lemon as a parser generator, its error handling is the same as yacc\'s and bison\'s if you don\'t know Lemon.[详细]
2023-01-08 12:08 分类:问答How to create a parser which tokenizes a list of words taken from a file?
I am trying to do a syntax text corrector for my compilers\' class. The idea is: I have some rules, which are inherent to the language (in my case, Portuguese), like \"A valid phrase is SUBJECT VERB A[详细]
2023-01-05 06:00 分类:问答Utility to format a Bison/Yacc grammar file nicely? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-01-03 12:40 分类:问答Trying to build a C# grammar for bison/wisent
I\'ve never done Bison or Wisent before. how can I get started? My real goal is to produce a working Wisent/Semantic grammar for C#, to allow C# to be edited in emacs with code-completion, and all t[详细]
2023-01-02 21:13 分类:问答Python: Trouble with YACC
I\'m using PLY to parse sentences like: \"CS 2310 or equivalent experience\" The desired output: [[(\"CS\", 2310)], [\"equivalent experience\"]][详细]
2023-01-01 06:35 分类:问答Tools to build a UI markup language parser
For a school project, I need to implement a parser for a (probably XML-based) markup language for User Interfaces. Based on the input it generates a HTML document with various UI components (textareas[详细]
2022-12-30 08:23 分类:问答On ocamlyacc, function application grammar and precedence
I\'m OCaml newbie and I\'m trying to write a simple OCaml-like grammar, and I can\'t figure this out. My grammar allows something like this:[详细]
2022-12-30 07:02 分类:问答