Skip to content

Commit

Permalink
Merge pull request #20 from ropalka/DMR-9
Browse files Browse the repository at this point in the history
[DMR-9] Replacing cookcc based parser with new one to support JDK8 and above
  • Loading branch information
bstansberry committed Jul 25, 2016
2 parents c7d7c1f + ae00d13 commit b2befc7
Show file tree
Hide file tree
Showing 119 changed files with 99,183 additions and 354 deletions.
30 changes: 30 additions & 0 deletions docs/json-format/README.txt
@@ -0,0 +1,30 @@
#
# The following ENBF grammar defines JBoss DMR 'JSON' format.
# index.html file contains visual representation of this grammar.
#

value ::= list | object | property | string | number | bytes | expression | type | boolean | 'null'
list ::= '[' ']' | '[' ( value ',' )* value ']'
object ::= '{' '}' | '{' ( string '=>' value ',' )* string '=>' value '}'
property ::= '{' string '=>' value '}'
string ::= '"' ( [^"\] | '\' '"' | '\' '\' | '\' 'b' | '\' 'f' | '\' 't' | '\' 'r' | '\' 'n' | '\' 'u' hexdigit hexdigit hexdigit hexdigit ) * '"'
number ::= int | double
expression ::= '{' '"EXPRESSION_VALUE"' ':' string '}'
bytes ::= '{' '"BYTES_VALUE"' ':' base64string '}'
boolean ::= 'false' | 'true'
type ::= '{' '"TYPE_MODEL_VALUE"' ':' ( '"BIG_DECIMAL"' | '"BIG_INTEGER"' | '"BOOLEAN"' | '"BYTES"' | '"DOUBLE"' | '"EXPRESSION"' | '"LIST"' | '"LONG"' | '"INT"' | '"OBJECT"' | '"PROPERTY"' | '"STRING"' ) '}'
int ::= octinteger | decinteger | hexinteger
double ::= [+-]? ( "Infinity" | "NaN" ) | ( decinteger "." ( decdigit )* ( exponent )? ) | [+-]? ( ( "." ( decdigit )* exponent ) | ( "." ( decdigit )+ (exponent)? ) | ( "." ( decdigit )+ exponent ) )
octinteger ::= [+-]? '0' octdigit+
decinteger ::= [+-]? ( '0' | [1-9] decdigit* )
hexinteger ::= [+-]? '0x' hexdigit+
base64string ::= '"' ( base64quartet | base64newline )* base64padding? base64newline* '"'
base64quartet ::= base64char base64char base64char base64char
base64padding ::= base64char base64char ( base64char base64char | base64char '=' | '==' )
base64char ::= [a-zA-Z0-9] | '+' | '/'
base64newline ::= '\r' | '\n'
octdigit ::= [0-7]
decdigit ::= [0-9]
hexdigit ::= [0-9a-fA-F]
exponent ::= ('e' | 'E') [+-]? decdigit+

Binary file added docs/json-format/diagram/base64char.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/base64newline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/base64padding.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/base64quartet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/base64string.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/boolean.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/bytes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/decdigit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/decinteger.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/double.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/exponent.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/expression.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/hexdigit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/hexinteger.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/int.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/list.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/number.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/object.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/octdigit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/octinteger.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/property.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/rr-1.44.1240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/string.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/type.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/json-format/diagram/value.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b2befc7

Please sign in to comment.