Seraph
Now You've done it.......
- Joined
- Sep 26, 2003
- Messages
- 897
- Gender
- Male
- HSC
- N/A
Hi everyone we've just started BNF and EBNF syntax at school (geez my teacher jumps around the syllabus alot) , we briefly touched on it but im having some difficulty with it
Okay say i want to define a word say... the word "hey"
i know to define i would have to use
:: =
ive done this so far
LLetter :: = a|b..|z
Uletter :: = A|B|.|Z
Letter ::= < Lletter > | < Uletter >
So ive defined letters individually , but then now how do i define the actual word?
Im not sure i really understand these terminal and non-terminal things very well
This is what i think they are..
Non-terminals are already defined elsewhere like Letter ::= < Lletter > | < Uletter >
And terminals... um im not sure are they like digits or characters individually... like A-Z or 0-9
Thanks
Okay say i want to define a word say... the word "hey"
i know to define i would have to use
:: =
ive done this so far
LLetter :: = a|b..|z
Uletter :: = A|B|.|Z
Letter ::= < Lletter > | < Uletter >
So ive defined letters individually , but then now how do i define the actual word?
Im not sure i really understand these terminal and non-terminal things very well
This is what i think they are..
Non-terminals are already defined elsewhere like Letter ::= < Lletter > | < Uletter >
And terminals... um im not sure are they like digits or characters individually... like A-Z or 0-9
Thanks
Last edited: