-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmathematica-grammar
More file actions
44 lines (43 loc) · 1.03 KB
/
mathematica-grammar
File metadata and controls
44 lines (43 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;; Mathematica grammar from mathics
;;
;; expr ::= expr expr
;; expr ::= ( expr )
;; expr ::= expr /: expr = expr
;; expr ::= expr /: expr := expr
;; expr ::= expr /: expr =.
;; expr ::= expr ;
;; expr ::= expr args
;; expr ::= expr position
;; span_start ::= expr
;; span_stop ::= expr
;; span_stop ::=
;; span_step ::= expr
;; span_step ::=
;; expr ::= span_start ;; span_stop ;; span_step
;; expr ::= span_start ;; span_stop
;; args ::= [ sequence ]
;; expr ::= { sequence }
;; position ::= [[ sequence ]]
;; rest_left ::=
;; rest_left ::= expr
;; rest_left ::= expr binary_op
;; rest_right ::=
;; rest_right ::= expr
;; rest_right ::= args rest_right
;; rest_right ::= positon rest_right
;; rest_right ::= rest_right binary_op expr
;; sequence ::=
;; sequence ::= sequence , expr
;; sequence ::= expr
;; sequence ::= ,
;; sequence ::= sequence ,
;; expr ::= symbol
;; expr ::= int
;; expr ::= float
;; expr ::= blanks
;; expr ::= blankdefault
;; expr ::= slot
;; expr ::= slotseq
;; expr ::= out
;; expr ::= string
;; u'binary_op ::= %s\n' % operator