ebnf Questions
1
Solved
I was going through the python grammer specification and find the following statement
for_stmt:
| 'for' star_targets 'in' ~ star_expressions ':' [TYPE_COMMENT] block [else_block]
What does ~ mea...
6
Solved
I want to come up with a language syntax. I have read a bit about these three, and can't really see anything that one can do that another can't. Is there any reason to use one over another? Or is i...
1
Solved
I have been able to obtain the metrices by sending an HTTP GET as follows:
# TYPE net_conntrack_dialer_conn_attempted_total untyped net_conntrack_dialer_conn_attempted_total{dialer_name="feder...
Filum asked 21/12, 2020 at 5:53
2
Solved
It's been a few years since my computer-language class and so I've forgotten the finer points of BNF's and EBNF's and I don't have a textbook next to me. Specifically, I've forgotten how to convert...
Nambypamby asked 17/3, 2010 at 22:54
3
Solved
I understand that EBNF can be used to express Context Free Grammar, but is there any difference between the two?
I am asking because there are questions that ask to convert EBNF to CFG, but as of ...
Cheliform asked 1/2, 2014 at 0:36
2
Solved
Throughout the RDF specs an EBNF-NOTATION XML specification is used to specify the grammar of a document. So I am wondering how to use Antlr/bison/yacc (maybe with some flag within these tools I do...
4
Solved
1
Solved
I'd rather not create the grammar myself. I did download a 'grammar' but it is written in a non-standard form for ANTLR or Yacc and it contains lexer statements. It would take me some time to separ...
1
I am looking for an EBNF grammar of the programming language C# in the Version 5.0. This grammar should be machine readable, so I am able to do some processing with this EBNF grammar
Until now I f...
4
Solved
I am wondering if someone has compiled an EBNF for PHP somewhere. I found both this site and this site. Both seem like they are incomplete, though. This question is very similar, but it's a year ol...
1
Solved
In trying to gather a deeper familiarity with Common Lisp's tools, I found myself struggling when reading the documentation. Namely, it is difficult to comprehend what the usage of the macro in que...
Kwan asked 20/12, 2017 at 17:43
1
Solved
I'm working on implementation of the Google Protobuf compiler for proto files in Prolog for generating Prolog programs. Prolog is SWI-Prolog.
I'm translating EBNF definitions into DCG and ran acro...
2
Solved
I have the following EBNF grammar for simple arithmetic expressions with left-associative operators:
expression:
term {+ term}
term:
factor {* factor}
factor:
number
( expression )
How can...
Aarau asked 11/7, 2012 at 12:50
1
I try to find the Extended BNF (EBNF) nice syntax highlighting. Can't find it through the Google. Anybody know the link?
Thank you.
Lebrun asked 18/7, 2013 at 10:6
2
Solved
Does BNF or ABNF support negation. That is exclude certain members of the set?
I did not see any such negation operator in its syntax.
For example, suppose S is the set of all alphanumeric strings...
Angi asked 6/6, 2012 at 21:11
1
Solved
So lets say I have the following grammar:
let_stat = "let" iden [ "=" expr ];
if_stat = "if" expr "->" stat;
stat = let_stat | if_stat;
This would be the following psuedo-ish code:
let_stat ...
Zaria asked 30/3, 2015 at 17:56
3
Solved
I'm trying to find a good EBNF description of ECMAScript, but so far I've not found anything complete.
Any ideas?
Guyguyana asked 23/11, 2009 at 22:38
1
Solved
How to say that (in BNF, EBNF, etc) any two or more letters are placed in the same vertical alignment
e.g In python 2.x, we have what we call indentation.
def hello():
print "hello,"
print "wo...
Chemise asked 5/1, 2015 at 19:9
1
Solved
I have written tokenizer and expression evaluator for a preprocessor language that I plan to use in my later projects. I started thinking that maybe I should describe the language with EBNF (Extend...
Vav asked 7/8, 2014 at 14:53
1
Solved
I'd like to define an unordered set of values using an Extended Backus-Naur Form (EBNF) context free grammar. It's easy to define an unordered list of values in EBNF, for example:
value = 'A' | 'B...
Lotus asked 4/6, 2014 at 6:3
2
Solved
I found the following EBNF on wikipedia, describing EBNF:
letter = "A" | "B" | "C" | "D" | "E" | "F" | "G"
| "H" | "I" | "J" | "K" | "L" | "M" | "N"
| "O" | "P" | "Q" | "R" | "S" | "T" | "U"
| ...
Subclinical asked 24/11, 2013 at 13:49
3
Solved
Recently I've been studying parsers and grammars and how they work. I was reading over the formal grammar for JSON at http://www.ietf.org/rfc/rfc4627.txt, which uses EBNF. I was pretty confident in...
2
How can I convert this BNF to EBNF?
<vardec> ::= var <vardeclist>;
<vardeclist> ::= <varandtype> {;<varandtype>}
<varandtype> ::= <ident> {,<ident>}...
1
Solved
I am creating a formal spec for a very simple rule language, very simple.
I want to use EBNF as this is a standard but I can't figure out how to specify order of operations. Here is the specificati...
Denmark asked 29/3, 2012 at 22:34
1
Solved
Anybody know of a tool, that generates EBNF from ANTLR?
ANTLR is already close to EBNF, but for documentation purpose I would like to have a clean EBNF description (without the Code in between).
W...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.