This website works better with JavaScript.
Home
Explore
Help
Sign In
Tom
/
GrammarTool
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
0
Releases
0
Wiki
Activity
Labels
Milestones
New Pull Request
#2
Added Readme
Merged
Tom
merged 1 commits from
develop
into
master
6 years ago
Conversation
0
Commits
1
Files Changed
1
1 changed files
with
26 additions
and
0 deletions
Whitespace
Show all changes
Ignore whitespace when comparing lines
Ignore changes in amount of whitespace
Ignore changes in whitespace at EOL
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+26
-0
README.md
+ 26
- 0
README.md
View File
@ -0,0 +1,26 @@
## Grammar Syntax
### Example
$FOO -> /foo
$FOO -> /foo$FOO
$FOO -> $BAR
$BAR -> /bar
$BAR -> $BAR
### Nonterminals
A Nonterminal starts with a leading
`$`
. The nonterminal
`FOO`
would be written as:
$FOO
### Terminals
A Terminals starts with a leading
`/`
. The terminal
`bar`
would be written as:
/bar
Note that
`/ab`
differs from
`/a/b`
. The string
`/ab`
resolves to the terminal
`ab`
,
whereas
`/a/b`
resolves to the terminals
`a`
and
`b`
Write
Preview
Loading…
Cancel
Save