Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

= #3

Open
ghost opened this issue Jun 1, 2019 · 2 comments
Open

= #3

ghost opened this issue Jun 1, 2019 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jun 1, 2019

@BaseMax
Copy link
Member

BaseMax commented Jun 1, 2019

Add regular expression in ET

Hey,

Thanks you, we will think about that.
Because it require a array Structure with support different type.

https://github.com/ET-Lang/STD/tree/master/regex

Regards,
Max

@BaseMax
Copy link
Member

BaseMax commented Jun 4, 2019

Hey

exp { .replace '#' }

exp.find "a-z" class Exp

class Exp find exp { .replace 'a-z#' + '?' }

What means it?

Regards,

Max


CODE-EXAMPLE

  1. If use regex.match , regex.matchAll , regex.replace , regex.split , regex.grep ... use only 'exp'.
  2. Example in Scheme I ( A thought )
  3. Example in Scheme II ( A thought )
  4. Model
  5. Use, Examples and Cases


Example in Scheme I ( A thought )

((lambda  (exp) (+ exp exp)) (* 3 4))

Output, example in Scheme

3*4 = 12;

exp = 12;

exp + exp = 12 + 12 = 24;.




Example in Scheme II ( A thought ) : readme 1 , readme 2 , readme 3 , readme 4

(ppcre:scan "(a)" "xaaabd")

readme 5




An Model

template <exp Regex>
array regex.replace(string input, string regexSplinters)
{
    if ( find -> #  in a-z ) // regex.find '#' in a-z ,  example a# , #a , a#b ,  c #c  ... 
        return true;
       print ( Sucess )
    else
        return false;
       print (Error )
}


@ghost ghost changed the title Add regular expression in ET information, change :: Add regular expression in ET Jun 8, 2019
@ghost ghost changed the title information, change :: Add regular expression in ET = Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants