diff options
| author | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-07 20:41:33 +0900 |
|---|---|---|
| committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-10 23:14:41 +0900 |
| commit | 3eb0e88f911386a4e6eca991c1471070596c5554 (patch) | |
| tree | 4c3ea445a804d781b846739d70392ceb1353ea6d /grammar/lalr1_test.go | |
| parent | Make #prec directive change only precedence and not associativity (diff) | |
| download | urubu-3eb0e88f911386a4e6eca991c1471070596c5554.tar.gz urubu-3eb0e88f911386a4e6eca991c1471070596c5554.tar.xz | |
Change syntax for top-level directives
%name changes to:
#name example;
%left and %right change to:
#prec (
#left a b
#right c d
);
Diffstat (limited to 'grammar/lalr1_test.go')
| -rw-r--r-- | grammar/lalr1_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar/lalr1_test.go b/grammar/lalr1_test.go index beb2707..94dfd65 100644 --- a/grammar/lalr1_test.go +++ b/grammar/lalr1_test.go @@ -10,7 +10,7 @@ import ( func TestGenLALR1Automaton(t *testing.T) { // This grammar belongs to LALR(1) class, not SLR(1). src := ` -%name test +#name test; S: L eq R | R; L: ref R | id; |
