On 11 Oct 2012, at 15:20, Adam Smalin wrote:
> Lets say I want to do something like this
>
> @Start Blah
> int a,b
> void func() {
>beep()
> }
> float c
> @end
>
> Then I will use Blah in place of declaring all that. Kind of like a C
> define. Now here is the twist
>
> @Start Blah
> int a,b
Lets say I do want to do it in Flex (is that a separate mailing list?)
actually, I can't ONLY do it in flex. Unless I want a C like #define.
I need some way of balancing {([ and anything else that opens/close.
Also I need to ensure I don't end in an invalid state like int a =. I
wouldn't want somet
Le 11 oct. 2012 à 16:46, Adam Smalin a écrit :
> hmm, I never thought about just building it with bison and including
> it later (so no input).
> The only issues I see is I will need to force the user to specify if
> it should be function, class or namespace level. It may be a lot of
> work to ma
hmm, I never thought about just building it with bison and including
it later (so no unput).
The only issues I see is I will need to force the user to specify if
it should be function, class or namespace level. It may be a lot of
work to make another set of rules that is all levels. I already have
Le 11 oct. 2012 à 15:20, Adam Smalin a écrit :
> Lets say I want to do something like this
>
> @Start Blah
> int a,b
> void func() {
>beep()
> }
> float c
> @end
>
> Then I will use Blah in place of declaring all that. Kind of like a C
> define. Now here is the twist
>
> @Start Blah
> int
Lets say I want to do something like this
@Start Blah
int a,b
void func() {
beep()
}
float c
@end
Then I will use Blah in place of declaring all that. Kind of like a C
define. Now here is the twist
@Start Blah
int a,b
void func() {
beep()
float c
@end
I want this to fail because it doe