Top "Grammar" questions

A formal grammar is a set of production rules that describe how to form strings of valid syntax.

How can i see the live parse tree using Antlr4 Ide in Eclipse?

I'm new using Antlr4 but I know that exist a plugin for Eclipse. I have a simple question...After I …

eclipse eclipse-plugin antlr grammar antlr4
Difference between a regular language and a regular grammar

My book gives similar but slightly different explanations of regular grammar and regular language. I doubt it's wrong, is a …

grammar regular-language
XText: use custom terminals definitions

I'm totally new to XText. When you define a grammar using XText you could specify a second grammar and use …

eclipse eclipse-plugin grammar xtext
Testing ANTLR Grammar

So I've been making a grammar in Eclipse with ANTLR v3.4 and I've made one that works and I want …

java grammar antlr3
SLR(1) Parser and epsilon involved

Let's suppose I have the following grammar: S → X X → a | ϵ If that grammar wouldn't have ϵ involved, I would construct …

parsing theory grammar compiler-theory language-theory
What's a valid left-hand-side expression in JavaScript grammar?

Okay, we all know what the valid left-hand-side expressions are. Kind of.* But, looking at the definition from the ECMA-Script …

javascript grammar ecma262
Does logical AND and NOT exists in ANTLR?

Is there NOT logic in ANTLR? Im basically trying to negate a rule that i have and was wondering if …

antlr grammar antlr3 formal-languages
Using ANTLR Parser and Lexer Separatly

I used ANTLR version 4 for creating compiler.First Phase was the Lexer part. I created "CompilerLexer.g4" file and putted …

c# grammar antlr4 lexer
First and follow of the non-terminals in two grammars

Given following grammar S -> L=L s -> L L -> *L L -> id …

grammar context-free-grammar
chomsky hierarchy in plain english

I'm trying to find a plain (i.e. non-formal) explanation of the 4 levels of formal grammars (unrestricted, context-sensitive, context-free, regular) …

grammar context-free-grammar regular-language context-sensitive-grammar