new Parser(source)
Constructs a new Parser.
Parameters:
Name | Type | Description |
---|---|---|
source |
string | Source |
- Source:
Members
-
proto3 :boolean
-
Whether parsing proto3 or not.
Type:
- boolean
- Source:
-
(non-null) tn :ProtoBuf.DotProto.Tokenizer
-
Tokenizer.
Type:
- Source:
Methods
-
(static) parse() → (non-null) {Object}
-
Parses the specified source.
- Source:
Throws:
-
If the source cannot be parsed
- Type
- Error
Returns:
- Type
- Object
-
parse() → (non-null) {Object}
-
Parses the source.
- Source:
Throws:
-
If the source cannot be parsed
- Type
- Error
Returns:
- Type
- Object
-
toString() → {string}
-
Returns a string representation of this parser.
- Source:
Returns:
- Type
- string