Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Context-free grammar
(view source)
Revision as of 19:38, May 14, 2012
152 bytes removed
,
19:38, May 14, 2012
add cross-reference to Backus-Naur Form
Line 1:
Line 1:
+
''An equivalent grammar [[Backus-Naur Form]] is often used for describing the syntax/grammar of programming languages.''
+
A '''Context-Free''' Grammar is a tuple (T, V, S, P);
A '''Context-Free''' Grammar is a tuple (T, V, S, P);
T is a set of atomic symbols.
T is a set of atomic symbols.
Line 23:
Line 25:
::real-number → part . part
::real-number → part . part
:}
:}
−
−
Or in '''Backus-Naur notation''':
−
:<real-numbers> → <part> . <part>
−
:<part> → <digit> | <digit> <part>
−
:<digit> → 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
−
−
The Backus-Naur form was discovered independently in the late 1950s by John Backus and Peter Naur.
[[category:linguistics]]
[[category:linguistics]]
[[Category:Computer Science]]
[[Category:Computer Science]]
RolandPlankton
SkipCaptcha
265
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Article
talk page
Variants
Views
Read
View source
View history
More
Search
Popular Links
Main Page
Recent changes
New Pages
Random page
Statistics
Edit Console
Special pages
Printable version