Files
asterisk/utils/expr2.testinput
Steve Murphy 604a51f341 These changes allow AEL to better check ${} constructs within $[...], that are concatenated with text.
I modified and added rules in ast_expr2.fl to better handle
the concatenations.

I added some default routines to ast_expr2.y so the standalone would
compile. It also looks like I haven't run this thru bison since 2.1, so
it's good to get this updated.

The Makefile has comments added now for check_expr2 and check_expr to
explain what they are for, and how to run them. 

The testexpr2s stuff has been removed, in favor of check_expr2.

expr2.testinput has been updated to include the two expressions
that inspired these changes (from mcnobody on #asterisk this morning)
The regression has been run and all looks well.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@179807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-03 18:11:34 +00:00

95 lines
1.7 KiB
Plaintext

2 + 2
2 + 2
2 - 4
4 - 2
-4 - -2
4 + 2 * 8
(4 + 2) * 8
4 + (2 * 8)
4 + (2 * 8) ? 3 :: 6
4 + 8 / 2
4 + 8 / 3
(4+8) / 3
4 + 8 % 3
4 + 9 % 3
(4+9) %3
(4+8) %3
(4+9) %3
(4+8) %3
(4+9) % 3
(4+8) % 3
(4+9) % 3
(4+8) % 3
(4+9)% 3
(4+8)% 3
(4+9)% 3
(4+8)% 3
4 & 4
0 & 4
0 & 0
2 | 0
2 | 4
0 | 0
!0 | 0
!4 | 0
4 | !0
!4 | !0
3 < 4
4 < 3
3 > 4
4 > 3
3 = 3
3 = 4
3 != 3
3 != 4
3 >= 4
3 >= 3
4 >= 3
3 <= 4
4 <= 3
4 <= 4
3 > 4 & 4 < 3
4 > 3 & 3 < 4
x = x
y = x
x != y
x != x
"Something interesting" =~ interesting
"Something interesting" =~ Something
"Something interesting" : Something
"Something interesting" : interesting
"Something interesting" =~ "interesting"
"Something interesting" =~ "Something"
"Something interesting" : "Something"
"Something interesting" : "interesting"
"Something interesting" =~ (interesting)
"Something interesting" =~ (Something)
"Something interesting" : (Something)
"Something interesting" : (interesting)
"Something interesting" =~ "\(interesting\)"
"Something interesting" =~ "\(Something\)"
"Something interesting" : "\(Something\)"
"Something interesting" : "\(interesting\)"
"011043567857575" : "011\(..\)"
"9011043567857575" : "011\(..\)"
"011043567857575" =~ "011\(..\)"
"9011043567857575" =~ "011\(..\)"
"Something interesting" =~ (interesting)
"Something interesting" =~ (Something)
"Something interesting" : (Something)
"Something interesting" : (interesting)
"Something interesting" =~ "(interesting)"
"Something interesting" =~ "(Something)"
"Something interesting" : "(Something)"
"Something interesting" : "(interesting)"
"011043567857575" : "011(..)"
"9011043567857575" : "011(..)"
"011043567857575" =~ "011(..)"
"9011043567857575" =~ "011(..)"
3
something
043
${GLOBAL(ULKOPREFIX)}9${x}
512059${x}