Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Specy committed Nov 14, 2024
1 parent fa57418 commit 4fb0697
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/components/dotlr/DotlrDocs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ T -> %id
<Card padding="1rem">
foo(bar+baz)
</Card>

<h2>
Episilon
</h2>
<p>
You can write the epsilon symbol by writing a rule with only the empty string as it's body <code>S -> ''</code>
</p>
<Card padding="1rem">

<SyntaxHighlighter
source={`S -> 'h' B 'e'
B -> B A
B -> ''
A -> 'x'
A -> 't'`}
language="dotlr"
/>
</Card>
</Column>


Expand All @@ -57,4 +75,10 @@ T -> %id
p{
line-height: 1.5;
}
code{
background-color: var(--primary);
padding: 0.1rem 0.3rem;
border-radius: 0.2rem;
white-space: nowrap;
}
</style>

0 comments on commit 4fb0697

Please sign in to comment.