ConseilJS icon indicating copy to clipboard operation
ConseilJS copied to clipboard

Michelson parser updates

Open anonymoussprocket opened this issue 5 years ago • 2 comments

  • [x] regex matcher for annotations
  • [x] regex matcher for CAR/CDR macros
  • [x] regex matcher for DUP/DIP macros
  • [x] fix Elt bug
  • [x] support for IF_SOME macro
  • [x] CREATE_CONTRACT support
  • [ ] regex matcher for PAIR macro
  • [ ] dynamic (UN)PAIR macro expansion
  • [x] support for SET_CAR/SET_CDR macros
  • [ ] support for MAP_CAR/MAP_CDR macros
  • [ ] annotations for macros
  • [ ] @%% annotation support

anonymoussprocket avatar Jul 05 '19 18:07 anonymoussprocket

These might help:

macroCADR: /C[AD]+R/
macroPAIR: /P[PA]+[AI]+R/;
macroDUP: /D[U]+P/
macroDIP: /D[I]+P/
annotationPattern: /[\@\%\:]{1}[a-z_A-Z0-9]+/

anonymoussprocket avatar Jul 05 '19 18:07 anonymoussprocket

Extremely, thank you!

ba205 avatar Jul 05 '19 18:07 ba205