In an EBNF grammar I have two tokens shape and attr. How would I express that shape should occur one or more times and attr zero or more times, but in ...
In an EBNF grammar I have two tokens shape and attr. How would I express that shape should occur one or more times and attr zero or more times, but in ...
I found a C BNF grammar here: https://cs.wmich.edu/~gupta/teaching/cs4850/sumII06/The%20syntax%20of%20C%20in%20Backus-Naur%20form.htm I adapted so ...
I'm trying to write a code snippet for vs code that takes a given file name, removes a piece of the name and capitalizes the first letter. For example ...
I am looking at this line of EBNF: Does [<zug><zug>] only become available when <zag> is used, or is it always available, even wi ...
I am looking for an official BNF/EBNF for The CLIPS Programming Language, so that I can write a parser/interpreter that groks (understands) CLIPS rule ...
Is there ways to tell gocc to ignore things in lexical parser? E.g., for 2022-01-18 11:33:21.9885 [21] These are strings that I need to egnore, until ...
I have a very simple event log format, just I'm having difficulties describing it in BNF (for gocc ). Here is my simple event log format: Say the ...
I find myself doing the following quite frequently as allowing one multiple entries separated by a comma: Is there a more compact way to do this? I ...
EBNF When I solve the problem, it comes out like this: BNF <A>::=<B><C>(); |<B><C> (<D>|<A><D>); ...
I was going through the python grammer specification and find the following statement, What does ~ means in this grammar rule?. The other symbols u ...
I'm working on a language parser for a little-known constructed language. Its BNF specification is here. Based on the given BNF, I've come up with th ...
I created EBNF for expressions below My problem lies within the factor section You can see that I included three unary operators not, -, and +. ...
What is the syntax for writing a sentence in BNF? The structure or correctness of it doesn't matter. I only care whether it has 1 or more words, which ...
I'm going to check whether the input is correct. This is syntax: I write the code based on the syntax, but I don't know how to do {<S-exp} I t ...
As context, my textbook uses this style for EBNF: Sebesta, Robert W. Concepts of Programming Languages 11th ed., Pearson, 2016, 150. The problem: ...
I am developing a new programming language for my university assignment, in which I have to create it's variable definition form based on the instruct ...
Is there a BNF type grammer description of the Purescript language? It is hard to get a good handle on the language when the syntax is buried and sca ...
Traceback task that I need to do Please help me to find normal examples of coding with EBNF func or explain my mistake. ...
I am interested in parsing typical output of a website crawler using lark. Here is an example of some sample output based on my own github website: ...