github.com/goplus/igop@v0.25.0/pkg/regexp/syntax/go115_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package syntax
     6  
     7  import (
     8  	q "regexp/syntax"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "syntax",
    19  		Path: "regexp/syntax",
    20  		Deps: map[string]string{
    21  			"sort":         "sort",
    22  			"strconv":      "strconv",
    23  			"strings":      "strings",
    24  			"unicode":      "unicode",
    25  			"unicode/utf8": "utf8",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]reflect.Type{
    29  			"EmptyOp":   reflect.TypeOf((*q.EmptyOp)(nil)).Elem(),
    30  			"Error":     reflect.TypeOf((*q.Error)(nil)).Elem(),
    31  			"ErrorCode": reflect.TypeOf((*q.ErrorCode)(nil)).Elem(),
    32  			"Flags":     reflect.TypeOf((*q.Flags)(nil)).Elem(),
    33  			"Inst":      reflect.TypeOf((*q.Inst)(nil)).Elem(),
    34  			"InstOp":    reflect.TypeOf((*q.InstOp)(nil)).Elem(),
    35  			"Op":        reflect.TypeOf((*q.Op)(nil)).Elem(),
    36  			"Prog":      reflect.TypeOf((*q.Prog)(nil)).Elem(),
    37  			"Regexp":    reflect.TypeOf((*q.Regexp)(nil)).Elem(),
    38  		},
    39  		AliasTypes: map[string]reflect.Type{},
    40  		Vars:       map[string]reflect.Value{},
    41  		Funcs: map[string]reflect.Value{
    42  			"Compile":        reflect.ValueOf(q.Compile),
    43  			"EmptyOpContext": reflect.ValueOf(q.EmptyOpContext),
    44  			"IsWordChar":     reflect.ValueOf(q.IsWordChar),
    45  			"Parse":          reflect.ValueOf(q.Parse),
    46  		},
    47  		TypedConsts: map[string]igop.TypedConst{
    48  			"ClassNL":                  {reflect.TypeOf(q.ClassNL), constant.MakeInt64(int64(q.ClassNL))},
    49  			"DotNL":                    {reflect.TypeOf(q.DotNL), constant.MakeInt64(int64(q.DotNL))},
    50  			"EmptyBeginLine":           {reflect.TypeOf(q.EmptyBeginLine), constant.MakeInt64(int64(q.EmptyBeginLine))},
    51  			"EmptyBeginText":           {reflect.TypeOf(q.EmptyBeginText), constant.MakeInt64(int64(q.EmptyBeginText))},
    52  			"EmptyEndLine":             {reflect.TypeOf(q.EmptyEndLine), constant.MakeInt64(int64(q.EmptyEndLine))},
    53  			"EmptyEndText":             {reflect.TypeOf(q.EmptyEndText), constant.MakeInt64(int64(q.EmptyEndText))},
    54  			"EmptyNoWordBoundary":      {reflect.TypeOf(q.EmptyNoWordBoundary), constant.MakeInt64(int64(q.EmptyNoWordBoundary))},
    55  			"EmptyWordBoundary":        {reflect.TypeOf(q.EmptyWordBoundary), constant.MakeInt64(int64(q.EmptyWordBoundary))},
    56  			"ErrInternalError":         {reflect.TypeOf(q.ErrInternalError), constant.MakeString(string(q.ErrInternalError))},
    57  			"ErrInvalidCharClass":      {reflect.TypeOf(q.ErrInvalidCharClass), constant.MakeString(string(q.ErrInvalidCharClass))},
    58  			"ErrInvalidCharRange":      {reflect.TypeOf(q.ErrInvalidCharRange), constant.MakeString(string(q.ErrInvalidCharRange))},
    59  			"ErrInvalidEscape":         {reflect.TypeOf(q.ErrInvalidEscape), constant.MakeString(string(q.ErrInvalidEscape))},
    60  			"ErrInvalidNamedCapture":   {reflect.TypeOf(q.ErrInvalidNamedCapture), constant.MakeString(string(q.ErrInvalidNamedCapture))},
    61  			"ErrInvalidPerlOp":         {reflect.TypeOf(q.ErrInvalidPerlOp), constant.MakeString(string(q.ErrInvalidPerlOp))},
    62  			"ErrInvalidRepeatOp":       {reflect.TypeOf(q.ErrInvalidRepeatOp), constant.MakeString(string(q.ErrInvalidRepeatOp))},
    63  			"ErrInvalidRepeatSize":     {reflect.TypeOf(q.ErrInvalidRepeatSize), constant.MakeString(string(q.ErrInvalidRepeatSize))},
    64  			"ErrInvalidUTF8":           {reflect.TypeOf(q.ErrInvalidUTF8), constant.MakeString(string(q.ErrInvalidUTF8))},
    65  			"ErrMissingBracket":        {reflect.TypeOf(q.ErrMissingBracket), constant.MakeString(string(q.ErrMissingBracket))},
    66  			"ErrMissingParen":          {reflect.TypeOf(q.ErrMissingParen), constant.MakeString(string(q.ErrMissingParen))},
    67  			"ErrMissingRepeatArgument": {reflect.TypeOf(q.ErrMissingRepeatArgument), constant.MakeString(string(q.ErrMissingRepeatArgument))},
    68  			"ErrTrailingBackslash":     {reflect.TypeOf(q.ErrTrailingBackslash), constant.MakeString(string(q.ErrTrailingBackslash))},
    69  			"ErrUnexpectedParen":       {reflect.TypeOf(q.ErrUnexpectedParen), constant.MakeString(string(q.ErrUnexpectedParen))},
    70  			"FoldCase":                 {reflect.TypeOf(q.FoldCase), constant.MakeInt64(int64(q.FoldCase))},
    71  			"InstAlt":                  {reflect.TypeOf(q.InstAlt), constant.MakeInt64(int64(q.InstAlt))},
    72  			"InstAltMatch":             {reflect.TypeOf(q.InstAltMatch), constant.MakeInt64(int64(q.InstAltMatch))},
    73  			"InstCapture":              {reflect.TypeOf(q.InstCapture), constant.MakeInt64(int64(q.InstCapture))},
    74  			"InstEmptyWidth":           {reflect.TypeOf(q.InstEmptyWidth), constant.MakeInt64(int64(q.InstEmptyWidth))},
    75  			"InstFail":                 {reflect.TypeOf(q.InstFail), constant.MakeInt64(int64(q.InstFail))},
    76  			"InstMatch":                {reflect.TypeOf(q.InstMatch), constant.MakeInt64(int64(q.InstMatch))},
    77  			"InstNop":                  {reflect.TypeOf(q.InstNop), constant.MakeInt64(int64(q.InstNop))},
    78  			"InstRune":                 {reflect.TypeOf(q.InstRune), constant.MakeInt64(int64(q.InstRune))},
    79  			"InstRune1":                {reflect.TypeOf(q.InstRune1), constant.MakeInt64(int64(q.InstRune1))},
    80  			"InstRuneAny":              {reflect.TypeOf(q.InstRuneAny), constant.MakeInt64(int64(q.InstRuneAny))},
    81  			"InstRuneAnyNotNL":         {reflect.TypeOf(q.InstRuneAnyNotNL), constant.MakeInt64(int64(q.InstRuneAnyNotNL))},
    82  			"Literal":                  {reflect.TypeOf(q.Literal), constant.MakeInt64(int64(q.Literal))},
    83  			"MatchNL":                  {reflect.TypeOf(q.MatchNL), constant.MakeInt64(int64(q.MatchNL))},
    84  			"NonGreedy":                {reflect.TypeOf(q.NonGreedy), constant.MakeInt64(int64(q.NonGreedy))},
    85  			"OneLine":                  {reflect.TypeOf(q.OneLine), constant.MakeInt64(int64(q.OneLine))},
    86  			"OpAlternate":              {reflect.TypeOf(q.OpAlternate), constant.MakeInt64(int64(q.OpAlternate))},
    87  			"OpAnyChar":                {reflect.TypeOf(q.OpAnyChar), constant.MakeInt64(int64(q.OpAnyChar))},
    88  			"OpAnyCharNotNL":           {reflect.TypeOf(q.OpAnyCharNotNL), constant.MakeInt64(int64(q.OpAnyCharNotNL))},
    89  			"OpBeginLine":              {reflect.TypeOf(q.OpBeginLine), constant.MakeInt64(int64(q.OpBeginLine))},
    90  			"OpBeginText":              {reflect.TypeOf(q.OpBeginText), constant.MakeInt64(int64(q.OpBeginText))},
    91  			"OpCapture":                {reflect.TypeOf(q.OpCapture), constant.MakeInt64(int64(q.OpCapture))},
    92  			"OpCharClass":              {reflect.TypeOf(q.OpCharClass), constant.MakeInt64(int64(q.OpCharClass))},
    93  			"OpConcat":                 {reflect.TypeOf(q.OpConcat), constant.MakeInt64(int64(q.OpConcat))},
    94  			"OpEmptyMatch":             {reflect.TypeOf(q.OpEmptyMatch), constant.MakeInt64(int64(q.OpEmptyMatch))},
    95  			"OpEndLine":                {reflect.TypeOf(q.OpEndLine), constant.MakeInt64(int64(q.OpEndLine))},
    96  			"OpEndText":                {reflect.TypeOf(q.OpEndText), constant.MakeInt64(int64(q.OpEndText))},
    97  			"OpLiteral":                {reflect.TypeOf(q.OpLiteral), constant.MakeInt64(int64(q.OpLiteral))},
    98  			"OpNoMatch":                {reflect.TypeOf(q.OpNoMatch), constant.MakeInt64(int64(q.OpNoMatch))},
    99  			"OpNoWordBoundary":         {reflect.TypeOf(q.OpNoWordBoundary), constant.MakeInt64(int64(q.OpNoWordBoundary))},
   100  			"OpPlus":                   {reflect.TypeOf(q.OpPlus), constant.MakeInt64(int64(q.OpPlus))},
   101  			"OpQuest":                  {reflect.TypeOf(q.OpQuest), constant.MakeInt64(int64(q.OpQuest))},
   102  			"OpRepeat":                 {reflect.TypeOf(q.OpRepeat), constant.MakeInt64(int64(q.OpRepeat))},
   103  			"OpStar":                   {reflect.TypeOf(q.OpStar), constant.MakeInt64(int64(q.OpStar))},
   104  			"OpWordBoundary":           {reflect.TypeOf(q.OpWordBoundary), constant.MakeInt64(int64(q.OpWordBoundary))},
   105  			"POSIX":                    {reflect.TypeOf(q.POSIX), constant.MakeInt64(int64(q.POSIX))},
   106  			"Perl":                     {reflect.TypeOf(q.Perl), constant.MakeInt64(int64(q.Perl))},
   107  			"PerlX":                    {reflect.TypeOf(q.PerlX), constant.MakeInt64(int64(q.PerlX))},
   108  			"Simple":                   {reflect.TypeOf(q.Simple), constant.MakeInt64(int64(q.Simple))},
   109  			"UnicodeGroups":            {reflect.TypeOf(q.UnicodeGroups), constant.MakeInt64(int64(q.UnicodeGroups))},
   110  			"WasDollar":                {reflect.TypeOf(q.WasDollar), constant.MakeInt64(int64(q.WasDollar))},
   111  		},
   112  		UntypedConsts: map[string]igop.UntypedConst{},
   113  	})
   114  }