| Home >> All >> org >> metacosm >> framework >> [ parser Javadoc ] |
org.metacosm.framework.parser: Javadoc index of package org.metacosm.framework.parser.
Package Samples:
org.metacosm.framework.parser
Classes:
Parser: The Parser is used to parse (!) input streams from players. It's also a Singleton OOD pattern. The following grammar is accepted: input::= pseudocmd ([;] pseudocmd)* pseudocmd::= (white)* command (white)* white::= [space] command::= cmdname (pseudoparam)* | (white)* pseudoparam::= white (white)* param param ::= [alphanum] ([alphanum])* | ['] [alphanum] ([alphanum])* ['] Terminal symbol: [space] (space), [;] (commands delimiter), ['] (string delimiter], [alphanum] (others autorized characters)
CommandsManager: Manages associations between commands name(s) and commands, both for PlayerCommands and ControllerCommands. Commands are loaded from two files (names given by Configuration). Used by the parser to find commands first, and then to execute them. It's a Singleton OOD pattern.
ExpectedCommandException: Exception thrown when something different from a command is detected while parsing a command
UnexpectedStringException: Exception thrown when a string is detected while the parser expects something else
BadStringAndCommandDelimitersException: Exception thrown when the String and the Command delimiters are the same
InvalidParameterException: Exception thrown when an invalid parameter is detected while parsing
EmptyStringException: Exception thrown when an empty string is detected while parsing
UnfinishedStringException: Exception thrown when the parser detects an unfinished string
UnknownCommandException: Exception thrown when the parser detects an unknown command
BadCommandDelimiterException: Exception thrown when the Command delimiter is a white
BadStringDelimiterException: Exception thrown when the String delimiter is a white
| Home | Contact Us | Privacy Policy | Terms of Service |