Update README.md
This commit is contained in:
@@ -56,9 +56,9 @@ mpc_parser_t *Maths = mpc_new("maths");
|
|||||||
|
|
||||||
mpca_lang(MPCA_LANG_DEFAULT,
|
mpca_lang(MPCA_LANG_DEFAULT,
|
||||||
" expression : <product> (('+' | '-') <product>)*; "
|
" expression : <product> (('+' | '-') <product>)*; "
|
||||||
" product : <value> (('*' | '/') <value>)*; "
|
" product : <value> (('*' | '/') <value>)*; "
|
||||||
" value : /[0-9]+/ | '(' <expression> ')'; "
|
" value : /[0-9]+/ | '(' <expression> ')'; "
|
||||||
" maths : /^/ <expression> /$/; ",
|
" maths : /^/ <expression> /$/; ",
|
||||||
Expr, Prod, Value, Maths, NULL);
|
Expr, Prod, Value, Maths, NULL);
|
||||||
|
|
||||||
mpc_result_t r;
|
mpc_result_t r;
|
||||||
|
Reference in New Issue
Block a user